To end a query after the set of desired drawing or dispatching commands is executed, call:
// Provided by VK_VERSION_1_0 void vkCmdEndQuery( VkCommandBuffer commandBuffer, VkQueryPool queryPool, uint32_t query);
commandBufferis the command buffer into which this command will be recorded.
queryPoolis the query pool that is managing the results of the query.
queryis the query index within the query pool where the result is stored.
The command completes the query in
queryPool identified by
query, and marks it as available.
This command defines an execution dependency between other query commands that reference the same query.
The second synchronization scope includes only the operation of this command.
vkCmdEndQuery is equivalent to calling
vkCmdEndQueryIndexedEXT with the
index parameter set to zero.
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.