SpiecsEngine
 
Loading...
Searching...
No Matches

◆ QueryResults()

void Spices::VulkanQueryPool::QueryResults ( uint64_t * result) const

Query results from Pool.

Parameters
[in,out]resultResult Data.

Query all result with uint64_t.

Query all result with uint64_t.

Definition at line 108 of file VulkanQueryPool.cpp.

109 {
111
115 VK_CHECK(vkGetQueryPoolResults(
118 0 ,
120 m_Stride * m_QueryCount + sizeof(uint64_t) ,
121 result ,
122 m_Stride ,
123 // Store results a 64 bit values and wait until the results have been finished
124 // If you don't want to wait, you can use VK_QUERY_RESULT_WITH_AVAILABILITY_BIT
125 // which also returns the state of the result (ready) in the result
126 VK_QUERY_RESULT_64_BIT | VK_QUERY_RESULT_WAIT_BIT
127 ))
128 }
#define SPICES_PROFILE_ZONE
#define VK_CHECK(expr)
Vulkan Check macro. Verify Vulkan API Effectiveness.
Definition VulkanUtils.h:68
VulkanState & m_VulkanState
The global VulkanState Referenced from VulkanRenderBackend.
uint32_t m_QueryCount
Query Count.
uint32_t m_Stride
Data stride.
VkQueryPool m_QueryPool
VkQueryPool Handler.