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

Method ForEachConsume

IntelPresentMon/PresentMonAPIWrapper/FixedQuery.cpp:126–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 }
125
126 size_t FixedFrameQueryContainer::ForEachConsume(ProcessTracker& tracker, std::function<void()> frameHandler)
127 {
128 size_t nFramesProcessed = 0;
129 do {
130 Consume(tracker);
131 const auto nPopulated = blobs_.GetNumBlobsPopulated();
132 for (uint32_t i = 0; i < nPopulated; i++) {
133 SetActiveBlobIndex(i);
134 frameHandler();
135 }
136 nFramesProcessed += nPopulated;
137 } while (blobs_.AllBlobsPopulated());
138 return nFramesProcessed;
139 }
140
141 void FixedFrameQueryContainer::Finalize_()
142 {

Callers

nothing calls this directly

Calls 3

ConsumeFunction · 0.85
GetNumBlobsPopulatedMethod · 0.80
AllBlobsPopulatedMethod · 0.80

Tested by

no test coverage detected