SpiecsEngine
 
Loading...
Searching...
No Matches

◆ BeginQuery()

void Spices::VulkanQueryPool::BeginQuery ( VkCommandBuffer commandBuffer,
uint32_t index = 0 ) const

Begin to query next commands.

Parameters
[in]commandBufferVkCommandBuffer.
[in]indexQueryIndex.

Determine VkQueryControlFlags.

Begin Query.

Determine VkQueryControlFlags.

Begin Query.

Definition at line 55 of file VulkanQueryPool.cpp.

56 {
58
62 VkQueryControlFlags flags = 0;
63 if (m_QueryType & VK_QUERY_TYPE_OCCLUSION)
64 {
65 flags |= VK_QUERY_CONTROL_PRECISE_BIT;
66 }
67
68 assert(!(m_QueryType & VK_QUERY_TYPE_TIMESTAMP));
69
73 vkCmdBeginQuery(commandBuffer, m_QueryPool, index, flags);
74 }
#define SPICES_PROFILE_ZONE
VkQueryType m_QueryType
Query Type.
VkQueryPool m_QueryPool
VkQueryPool Handler.