MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / GetLevelName

Function GetLevelName

IntelPresentMon/SampleClient/DiagnosticDemo.cpp:11–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9using namespace pmon::util;
10
11const char* GetLevelName(PM_DIAGNOSTIC_LEVEL lvl) {
12 switch (lvl) {
13 case PM_DIAGNOSTIC_LEVEL_NONE: return "None";
14 case PM_DIAGNOSTIC_LEVEL_FATAL: return "Fatal";
15 case PM_DIAGNOSTIC_LEVEL_ERROR: return "Error";
16 case PM_DIAGNOSTIC_LEVEL_WARNING: return "Warning";
17 case PM_DIAGNOSTIC_LEVEL_INFO: return "Info";
18 case PM_DIAGNOSTIC_LEVEL_PERFORMANCE: return "Performance";
19 case PM_DIAGNOSTIC_LEVEL_DEBUG: return "Debug";
20 case PM_DIAGNOSTIC_LEVEL_VERBOSE: return "Verbose";
21 default: return "Unknown";
22 }
23}
24
25void RunDiagnosticDemo(int mode)
26{

Callers 1

RunDiagnosticDemoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected