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

Function MakeFrame

IntelPresentMon/UnitTests/MetricsCore.cpp:653–673  ·  view source on GitHub ↗

Simple helper to construct FrameData for metrics tests.

Source from the content-addressed store, hash-verified

651
652 // Simple helper to construct FrameData for metrics tests.
653 static FrameData MakeFrame(
654 PresentResult finalState,
655 uint64_t presentStartTime,
656 uint64_t timeInPresent,
657 uint64_t readyTime,
658 const DisplayedVector& displayed,
659 uint64_t appSimStartTime = 0,
660 uint64_t pclSimStartTime = 0,
661 uint64_t flipDelay = 0)
662 {
663 FrameData f{};
664 f.presentStartTime = presentStartTime;
665 f.timeInPresent = timeInPresent;
666 f.readyTime = readyTime;
667 f.displayed = displayed;
668 f.appSimStartTime = appSimStartTime;
669 f.pclSimStartTime = pclSimStartTime;
670 f.flipDelay = flipDelay;
671 f.finalState = finalState;
672 return f;
673 }
674
675
676TEST_CLASS(UnifiedSwapChainTests)

Callers 2

TEST_CLASSFunction · 0.85
TEST_METHODFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected