MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / PostCallRecordCmdDraw

Method PostCallRecordCmdDraw

layers/sync/sync_validation.cpp:1173–1182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1171}
1172
1173void SyncValidator::PostCallRecordCmdDraw(VkCommandBuffer commandBuffer, uint32_t vertexCount, uint32_t instanceCount,
1174 uint32_t firstVertex, uint32_t firstInstance, const RecordObject& record_obj) {
1175 auto cb_state = Get<vvl::CommandBuffer>(commandBuffer);
1176 auto* cb_access_context = GetAccessContext(*cb_state);
1177 const auto tag = cb_access_context->NextCommandTag(record_obj.location.function);
1178
1179 cb_access_context->RecordDispatchDrawDescriptorSet(VK_PIPELINE_BIND_POINT_GRAPHICS, tag);
1180 cb_access_context->RecordDrawVertex(vertexCount, firstVertex, tag);
1181 cb_access_context->RecordDrawAttachment(tag);
1182}
1183
1184bool SyncValidator::PreCallValidateCmdDrawIndexed(VkCommandBuffer commandBuffer, uint32_t indexCount, uint32_t instanceCount,
1185 uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance,

Callers

nothing calls this directly

Calls 5

GetAccessContextFunction · 0.85
NextCommandTagMethod · 0.80
RecordDrawVertexMethod · 0.80
RecordDrawAttachmentMethod · 0.80

Tested by

no test coverage detected