Lines Matching refs:buffer_state
3849 bool CoreChecks::ValidateBufferUsageFlags(BUFFER_STATE const *buffer_state, VkFlags desired, bool s… in ValidateBufferUsageFlags() argument
3851 return ValidateUsageFlags(buffer_state->createInfo.usage, desired, strict, in ValidateBufferUsageFlags()
3852 …VulkanTypedHandle(buffer_state->buffer, kVulkanObjectTypeBuffer), msgCode, func_name, usage_string… in ValidateBufferUsageFlags()
3855 bool CoreChecks::ValidateBufferViewRange(const BUFFER_STATE *buffer_state, const VkBufferViewCreate… in ValidateBufferViewRange() argument
3864 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-range-00928", in ValidateBufferViewRange()
3873 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-range-00929", in ValidateBufferViewRange()
3882 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-range-00930", in ValidateBufferViewRange()
3889 if (range + pCreateInfo->offset > buffer_state->createInfo.size) { in ValidateBufferViewRange()
3891 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-offset-00931", in ValidateBufferViewRange()
3895 range, pCreateInfo->offset, buffer_state->createInfo.size); in ValidateBufferViewRange()
3901 bool CoreChecks::ValidateBufferViewBuffer(const BUFFER_STATE *buffer_state, const VkBufferViewCreat… in ValidateBufferViewBuffer() argument
3904 if ((buffer_state->createInfo.usage & VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT) && in ValidateBufferViewBuffer()
3907 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-buffer-00933", in ValidateBufferViewBuffer()
3911 if ((buffer_state->createInfo.usage & VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT) && in ValidateBufferViewBuffer()
3914 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-buffer-00934", in ValidateBufferViewBuffer()
3990 std::unique_ptr<BUFFER_STATE> buffer_state(new BUFFER_STATE(*pBuffer, pCreateInfo)); in PostCallRecordCreateBuffer() local
3993 DispatchGetBufferMemoryRequirements(device, *pBuffer, &buffer_state->requirements); in PostCallRecordCreateBuffer()
3995 bufferMap.insert(std::make_pair(*pBuffer, std::move(buffer_state))); in PostCallRecordCreateBuffer()
4001 BUFFER_STATE *buffer_state = GetBufferState(pCreateInfo->buffer); in PreCallValidateCreateBufferView() local
4003 if (buffer_state) { in PreCallValidateCreateBufferView()
4004 …skip |= ValidateMemoryIsBoundToBuffer(buffer_state, "vkCreateBufferView()", "VUID-VkBufferViewCrea… in PreCallValidateCreateBufferView()
4007 skip |= ValidateBufferUsageFlags(buffer_state, in PreCallValidateCreateBufferView()
4013 if (pCreateInfo->offset >= buffer_state->createInfo.size) { in PreCallValidateCreateBufferView()
4015 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-offset-00925", in PreCallValidateCreateBufferView()
4018 pCreateInfo->offset, buffer_state->createInfo.size); in PreCallValidateCreateBufferView()
4026 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-offset-02749", in PreCallValidateCreateBufferView()
4037 if (buffer_state->createInfo.usage & VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT) { in PreCallValidateCreateBufferView()
4046 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-buffer-02750", in PreCallValidateCreateBufferView()
4060 if (buffer_state->createInfo.usage & VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT) { in PreCallValidateCreateBufferView()
4069 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-buffer-02751", in PreCallValidateCreateBufferView()
4085 skip |= ValidateBufferViewRange(buffer_state, pCreateInfo, device_limits); in PreCallValidateCreateBufferView()
4087 skip |= ValidateBufferViewBuffer(buffer_state, pCreateInfo); in PreCallValidateCreateBufferView()
4545 auto buffer_state = GetBufferState(buffer); in ValidateIdleBuffer() local
4546 if (!buffer_state) { in ValidateIdleBuffer()
4551 if (buffer_state->in_use.load()) { in ValidateIdleBuffer()
4584 auto buffer_state = GetBufferState(buffer); in PreCallValidateDestroyBuffer() local
4587 if (buffer_state) { in PreCallValidateDestroyBuffer()
4595 auto buffer_state = GetBufferState(buffer); in PreCallRecordDestroyBuffer() local
4598 InvalidateCommandBuffers(buffer_state->cb_bindings, obj_struct); in PreCallRecordDestroyBuffer()
4599 for (auto mem_binding : buffer_state->GetBoundMemory()) { in PreCallRecordDestroyBuffer()
4606 bufferMap.erase(buffer_state->buffer); in PreCallRecordDestroyBuffer()
4644 auto buffer_state = GetBufferState(dstBuffer); in PreCallValidateCmdFillBuffer() local
4646 …skip |= ValidateMemoryIsBoundToBuffer(buffer_state, "vkCmdFillBuffer()", "VUID-vkCmdFillBuffer-dst… in PreCallValidateCmdFillBuffer()
4652 …skip |= ValidateBufferUsageFlags(buffer_state, VK_BUFFER_USAGE_TRANSFER_DST_BIT, true, "VUID-vkCmd… in PreCallValidateCmdFillBuffer()
4661 auto buffer_state = GetBufferState(dstBuffer); in PreCallRecordCmdFillBuffer() local
4663 AddCommandBufferBindingBuffer(cb_node, buffer_state); in PreCallRecordCmdFillBuffer()