diff options
author | chai <chaifix@163.com> | 2021-10-17 16:01:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-17 16:01:30 +0800 |
commit | 6e73ca6ada8a41692809dae5db89c8db0675ce1e (patch) | |
tree | 3ca6f06b29b3e2c183750ddcff8d7a09d0785e6b /Runner/Profiler/FrameStats.h | |
parent | e13f699ee5f575198552d94ada1167305c82bb2f (diff) |
-Runner
Diffstat (limited to 'Runner/Profiler/FrameStats.h')
-rw-r--r-- | Runner/Profiler/FrameStats.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Runner/Profiler/FrameStats.h b/Runner/Profiler/FrameStats.h deleted file mode 100644 index b3073d5..0000000 --- a/Runner/Profiler/FrameStats.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef FRAME_STATS_H -#define FRAME_STATS_H - -#include "../Utilities/Singleton.h" -#include "../Utilities/UtilMacros.h" -#include "../Utilities/Type.h" - -class FrameStats : public Singleton<FrameStats> -{ -public: - void OnBeginFrame(); - void OnEndFrame(); - - void AddDrawCall(uint n = 1); - void AddTrianglesCount(uint n = 1); - - GET(uint, DrawCall, m_DrawCall); - GET(uint, TrianglesCount, m_TrianglesCount); - -private: - - uint m_DrawCall; - uint m_TrianglesCount; - -}; - -#define g_FrameStats (*FrameStats::Instance()) - -#endif
\ No newline at end of file |