mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-10 08:51:19 +12:00
26 lines
565 B
C++
26 lines
565 B
C++
#pragma once
|
|
|
|
class MetalPerformanceMonitor
|
|
{
|
|
public:
|
|
// Per frame data
|
|
uint32 m_commandBuffers = 0;
|
|
uint32 m_renderPasses = 0;
|
|
uint32 m_clears = 0;
|
|
uint32 m_manualVertexFetchDraws = 0;
|
|
uint32 m_meshDraws = 0;
|
|
uint32 m_triangleFans = 0;
|
|
|
|
MetalPerformanceMonitor() = default;
|
|
~MetalPerformanceMonitor() = default;
|
|
|
|
void ResetPerFrameData()
|
|
{
|
|
m_commandBuffers = 0;
|
|
m_renderPasses = 0;
|
|
m_clears = 0;
|
|
m_manualVertexFetchDraws = 0;
|
|
m_meshDraws = 0;
|
|
m_triangleFans = 0;
|
|
}
|
|
};
|