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

Function ClampPhase

IntelPresentMon/SampleClient/ServiceCrashClient.cpp:16–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace
15{
16 CrashPhase ClampPhase(int rawPhase)
17 {
18 if (rawPhase <= static_cast<int>(CrashPhase::SessionOpen)) {
19 return CrashPhase::SessionOpen;
20 }
21 if (rawPhase >= static_cast<int>(CrashPhase::QueryPolling)) {
22 return CrashPhase::QueryPolling;
23 }
24 return static_cast<CrashPhase>(rawPhase);
25 }
26}
27
28int ServiceCrashClientTest(std::unique_ptr<pmapi::Session> pSession)

Callers 1

ServiceCrashClientTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected