SpiecsEngine
 
Loading...
Searching...
No Matches

◆ RenderPassStatistics()

Spices::RenderPassStatistics::RenderPassStatistics ( VulkanState & state,
Querier::StatisticsFlags flags )

Constructor Function.

Parameters
[in]stateVulkanState.
[in]flagsStatisticsFlags.

Definition at line 16 of file RenderPassStatistics.cpp.

17 {
19
20 if (flags & Querier::Timestamp)
21 {
22 m_Queries[glm::log2((int)Querier::Timestamp)] = std::make_unique<TimestampQuerier>(state);
23 }
24
25 if (flags & Querier::Pipeline)
26 {
27 m_Queries[glm::log2((int)Querier::Pipeline)] = std::make_unique<PipelineStatisticsQuerier>(state);
28 }
29 }
#define SPICES_PROFILE_ZONE
std::array< std::unique_ptr< Querier >, static_cast< size_t >(Querier::Max)> m_Queries
Array of all statistics item.

References Spices::Querier::Pipeline, and Spices::Querier::Timestamp.