SpiecsEngine
 
Loading...
Searching...
No Matches
Spices::VulkanQueryPool Class Reference

This Class is a Wrapper of VulkanQueryPool. More...

#include <VulkanQueryPool.h>

Inheritance diagram for Spices::VulkanQueryPool:
Spices::VulkanObject

Public Member Functions

 VulkanQueryPool (VulkanState &vulkanState, VkQueryType type, uint32_t count=1, uint32_t stride=8, VkQueryPipelineStatisticFlags statistics=0)
 Constructor Function. Create VkQueryPool.
 
virtual ~VulkanQueryPool () override
 Destructor Function.
 
void BeginQuery (VkCommandBuffer commandBuffer, uint32_t index=0) const
 Begin to query next commands.
 
void EndQuery (VkCommandBuffer commandBuffer, uint32_t index=0) const
 End query previous commands.
 
void WriteTimeStamp (VkCommandBuffer commandBuffer, uint32_t index) const
 Write a TimeStamp to queryPool.
 
void Reset (VkCommandBuffer commandBuffer) const
 Reset QueryPool. Call it on frame start.
 
void QueryResults (uint64_t *result) const
 Query results from Pool.
 
VkQueryPool Get () const
 Get VkQueryPool Handler.
 

Protected Attributes

VulkanStatem_VulkanState
 The global VulkanState Referenced from VulkanRenderBackend.
 

Private Attributes

VkQueryPool m_QueryPool
 VkQueryPool Handler.
 
VkQueryType m_QueryType
 Query Type.
 
uint32_t m_QueryCount
 Query Count.
 
uint32_t m_Stride
 Data stride.
 

Detailed Description

This Class is a Wrapper of VulkanQueryPool.

Definition at line 16 of file VulkanQueryPool.h.


The documentation for this class was generated from the following files: