2016-07-11 01:13:41 +00:00
|
|
|
// Copyright (c) 2014-2016 Khronos Group. This work is licensed under a
|
|
|
|
// Creative Commons Attribution 4.0 International License; see
|
|
|
|
// http://creativecommons.org/licenses/by/4.0/
|
|
|
|
|
2016-02-16 09:53:44 +00:00
|
|
|
vkCmdBeginQuery(3)
|
2016-07-11 01:13:41 +00:00
|
|
|
==================
|
2016-02-16 09:53:44 +00:00
|
|
|
|
|
|
|
Name
|
|
|
|
----
|
|
|
|
vkCmdBeginQuery - Begin a query.
|
|
|
|
|
|
|
|
C Specification
|
|
|
|
---------------
|
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
// refBegin vkCmdBeginQuery Begin a query.
|
|
|
|
|
|
|
|
To begin a query, call:
|
|
|
|
|
2016-02-16 09:53:44 +00:00
|
|
|
include::../protos/vkCmdBeginQuery.txt[]
|
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
|
2016-02-16 09:53:44 +00:00
|
|
|
Parameters
|
|
|
|
----------
|
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
* pname:commandBuffer is the command buffer into which this command will
|
|
|
|
be recorded.
|
|
|
|
* pname:queryPool is the query pool that will manage the results of the
|
|
|
|
query.
|
|
|
|
* pname:query is the query index within the query pool that will contain
|
|
|
|
the results.
|
|
|
|
* pname:flags is a bitmask indicating constraints on the types of queries
|
|
|
|
that can: be performed. Bits which can: be set include:
|
|
|
|
+
|
|
|
|
// refBegin VkQueryControlFlagBits - Bitmask specifying constraints on a query
|
|
|
|
include::../enums/VkQueryControlFlagBits.txt[]
|
2016-02-16 09:53:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
-----------
|
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
If the pname:queryType of the pool is ename:VK_QUERY_TYPE_OCCLUSION and
|
|
|
|
pname:flags contains ename:VK_QUERY_CONTROL_PRECISE_BIT, an implementation
|
|
|
|
must: return a result that matches the actual number of samples passed. This
|
|
|
|
is described in more detail in <<queries-occlusion,Occlusion Queries>>.
|
2016-02-16 09:53:44 +00:00
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
[[queries-operation-active]]
|
|
|
|
After beginning a query, that query is considered _active_ within the command
|
|
|
|
buffer it was called in until that same query is ended. Queries active in a
|
|
|
|
primary command buffer when secondary command buffers are executed are
|
|
|
|
considered active for those secondary command buffers.
|
2016-02-16 09:53:44 +00:00
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
include::../validity/protos/vkCmdBeginQuery.txt[]
|
2016-02-16 09:53:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
See Also
|
|
|
|
--------
|
|
|
|
|
2016-07-11 01:13:41 +00:00
|
|
|
slink:VkCommandBuffer, elink:VkQueryControlFlags, slink:VkQueryPool
|
|
|
|
|
|
|
|
|
|
|
|
Document Notes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
For more information, see the Vulkan Specification at URL
|
|
|
|
|
|
|
|
https://www.khronos.org/registry/vulkan/specs/1.0/xhtml/vkspec.html#vkCmdBeginQuery
|
|
|
|
|
|
|
|
This page is extracted from the Vulkan Specification.
|
|
|
|
Fixes and changes should be made to the Specification,not directly.
|
2016-02-16 09:53:44 +00:00
|
|
|
|
|
|
|
include::footer.txt[]
|
2016-07-11 01:13:41 +00:00
|
|
|
|