VKCMDENDQUERY(3)

NAME
vkCmdEndQuery - Ends a query.

C SPECIFICATION

    void vkCmdEndQuery(
        VkCommandBuffer                             commandBuffer,
        VkQueryPool                                 queryPool,
        uint32_t                                    query);

PARAMETERS

commandBuffer
    The command buffer upon which to execute the command.

queryPool
    The pool in which the query to be stopped resides.

entry
    The entry within queryPool at which the query to be stopped resides.

DESCRIPTION

vkCmdEndQuery ends the query at the entry specified by entry in the query pool specified by queryPool. The command is executed in the command buffer specified by commandBuffer. The query referenced by queryPool and entry should be an active query for which vkCmdBeginQuery has been called in the past.

VALID USAGE

    • commandBuffer must be a valid VkCommandBuffer handle

    • queryPool must be a valid VkQueryPool handle

    • commandBuffer must be in the recording state

    • The VkCommandPool that commandBuffer was allocated from must support graphics or compute operations

    • Each of commandBuffer and queryPool must have been created, allocated or retrieved from the same VkDevice

    • The query identified by queryPool and query must currently be active

    • query must be less than the number of queries in queryPool

HOST SYNCHRONIZATION

    • Host access to commandBuffer must be externally synchronized

COMMAND PROPERTIES
Command Buffer Levels | Render Pass Scope | Supported Queue Types
Primary Secondary | Both | GRAPHICS COMPUTE

SEE ALSO

vkCmdBeginQuery, vkCmdResetQueryPool, vkCreateQueryPool, vkDestroyQueryPool, vkGetQueryPoolResults, vkCmdCopyQueryPoolResults

COPYRIGHT

Copyright © 2014-2016 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.

AUTHOR

Khronos Group
    Author.