Lines Matching refs:buffer_state
3789 …teBufferUsageFlags(const layer_data *device_data, BUFFER_STATE const *buffer_state, VkFlags desire… in ValidateBufferUsageFlags() argument
3791 …eturn ValidateUsageFlags(device_data, buffer_state->createInfo.usage, desired, strict, HandleToUin… in ValidateBufferUsageFlags()
3795 …oreChecks::ValidateBufferViewRange(const layer_data *device_data, const BUFFER_STATE *buffer_state, in ValidateBufferViewRange() argument
3804 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-range-00928", in ValidateBufferViewRange()
3813 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-range-00929", in ValidateBufferViewRange()
3823 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-range-00930", in ValidateBufferViewRange()
3830 if (range + pCreateInfo->offset > buffer_state->createInfo.size) { in ValidateBufferViewRange()
3832 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-offset-00931", in ValidateBufferViewRange()
3836 range, pCreateInfo->offset, buffer_state->createInfo.size); in ValidateBufferViewRange()
3842 …reChecks::ValidateBufferViewBuffer(const layer_data *device_data, const BUFFER_STATE *buffer_state, in ValidateBufferViewBuffer() argument
3846 if ((buffer_state->createInfo.usage & VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT) && in ValidateBufferViewBuffer()
3849 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-buffer-00933", in ValidateBufferViewBuffer()
3853 if ((buffer_state->createInfo.usage & VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT) && in ValidateBufferViewBuffer()
3856 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-buffer-00934", in ValidateBufferViewBuffer()
3942 BUFFER_STATE *buffer_state = GetBufferState(pCreateInfo->buffer); in PreCallValidateCreateBufferView() local
3944 if (buffer_state) { in PreCallValidateCreateBufferView()
3945 skip |= ValidateMemoryIsBoundToBuffer(device_data, buffer_state, "vkCreateBufferView()", in PreCallValidateCreateBufferView()
3949 skip |= ValidateBufferUsageFlags(device_data, buffer_state, in PreCallValidateCreateBufferView()
3955 if (pCreateInfo->offset >= buffer_state->createInfo.size) { in PreCallValidateCreateBufferView()
3957 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-offset-00925", in PreCallValidateCreateBufferView()
3960 pCreateInfo->offset, buffer_state->createInfo.size); in PreCallValidateCreateBufferView()
3967 … HandleToUint64(buffer_state->buffer), "VUID-VkBufferViewCreateInfo-offset-00926", in PreCallValidateCreateBufferView()
3973 skip |= ValidateBufferViewRange(device_data, buffer_state, pCreateInfo, device_limits); in PreCallValidateCreateBufferView()
3975 skip |= ValidateBufferViewBuffer(device_data, buffer_state, pCreateInfo); in PreCallValidateCreateBufferView()
4466 auto buffer_state = GetBufferState(buffer); in ValidateIdleBuffer() local
4467 if (!buffer_state) { in ValidateIdleBuffer()
4472 if (buffer_state->in_use.load()) { in ValidateIdleBuffer()
4507 auto buffer_state = GetBufferState(buffer); in PreCallValidateDestroyBuffer() local
4510 if (buffer_state) { in PreCallValidateDestroyBuffer()
4519 auto buffer_state = GetBufferState(buffer); in PreCallRecordDestroyBuffer() local
4522 InvalidateCommandBuffers(device_data, buffer_state->cb_bindings, obj_struct); in PreCallRecordDestroyBuffer()
4523 for (auto mem_binding : buffer_state->GetBoundMemory()) { in PreCallRecordDestroyBuffer()
4531 GetBufferMap()->erase(buffer_state->buffer); in PreCallRecordDestroyBuffer()
4562 auto buffer_state = GetBufferState(dstBuffer); in PreCallValidateCmdFillBuffer() local
4564 …skip |= ValidateMemoryIsBoundToBuffer(device_data, buffer_state, "vkCmdFillBuffer()", "VUID-vkCmdF… in PreCallValidateCmdFillBuffer()
4571 ValidateBufferUsageFlags(device_data, buffer_state, VK_BUFFER_USAGE_TRANSFER_DST_BIT, true, in PreCallValidateCmdFillBuffer()
4581 auto buffer_state = GetBufferState(dstBuffer); in PreCallRecordCmdFillBuffer() local
4583 AddCommandBufferBindingBuffer(device_data, cb_node, buffer_state); in PreCallRecordCmdFillBuffer()