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

Function ValidateFrameType

IntelPresentMon/PresentMonAPI2Tests/CsvHelper.h:381–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381bool ValidateFrameType(PM_FRAME_TYPE gold, PM_FRAME_TYPE test) {
382 // Gold FrameType may be NotSet, Repeated or Application. If Gold is one of NotSet, Unspecified or Repeated test must match. If Gold is
383 // Application, test can be Application, NotSet, or Repeated. The reason for this is if the gold file was generated from PresentMon version
384 // that had DEBUG_FRAME_TYPE defined.
385 if (gold == PM_FRAME_TYPE_NOT_SET || gold == PM_FRAME_TYPE_UNSPECIFIED || gold == PM_FRAME_TYPE_REPEATED) {
386 return test == gold;
387 }
388 else if (gold == PM_FRAME_TYPE_APPLICATION) {
389 return test == PM_FRAME_TYPE_APPLICATION || test == PM_FRAME_TYPE_NOT_SET || test == PM_FRAME_TYPE_REPEATED;
390 }
391 else {
392 return gold == test;
393 }
394
395}
396
397template<typename T>
398bool Validate(const T& param1, const T& param2) {

Callers 1

VerifyBlobAgainstCsvMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected