forked from baldurk/visor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stats.cpp
43 lines (37 loc) · 1.47 KB
/
stats.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "precompiled.h"
MICROPROFILE_DECLARE(rasterizer_ShadeVerts);
MICROPROFILE_DECLARE(rasterizer_ToWindow);
MICROPROFILE_DECLARE(rasterizer_MinMax);
MICROPROFILE_DECLARE(rasterizer_ClearTarget);
MICROPROFILE_DECLARE(rasterizer_DrawTriangles);
MICROPROFILE_DECLARE(vkQueueSubmit);
MICROPROFILE_DECLARE(vkQueuePresentKHR);
MICROPROFILE_DEFINE(rasterizer_ShadeVerts, "rasterizer", "ShadeVerts", MP_KHAKI);
MICROPROFILE_DEFINE(rasterizer_ToWindow, "rasterizer", "ToWindow", MP_MAROON);
MICROPROFILE_DEFINE(rasterizer_MinMax, "rasterizer", "MinMax", MP_FIREBRICK);
MICROPROFILE_DEFINE(rasterizer_ClearTarget, "rasterizer", "ClearTarget", MP_GAINSBORO);
MICROPROFILE_DEFINE(rasterizer_DrawTriangles, "rasterizer", "DrawTriangles", MP_THISTLE);
MICROPROFILE_DEFINE(vkQueueSubmit, "vulkan", "vkQueueSubmit", MP_RED);
MICROPROFILE_DEFINE(vkQueuePresentKHR, "vulkan", "vkQueuePresentKHR", MP_BLUE);
void InitFrameStats()
{
}
void BeginFrameStats()
{
MICROPROFILE_COUNTER_SET("rasterizer/pixels/tested", 0);
MICROPROFILE_COUNTER_SET("rasterizer/pixels/written", 0);
MICROPROFILE_COUNTER_SET("rasterizer/depth/passed", 0);
MICROPROFILE_COUNTER_SET("rasterizer/triangles/in", 0);
MICROPROFILE_COUNTER_SET("rasterizer/triangles/out", 0);
MICROPROFILE_COUNTER_SET("rasterizer/draws/in", 0);
MICROPROFILE_COUNTER_SET("tcache/misses", 0);
MICROPROFILE_COUNTER_SET("tcache/hits", 0);
}
void EndFrameStats()
{
MicroProfileFlip(NULL);
}
void ShutdownFrameStats()
{
MicroProfileShutdown();
}