MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / end

Method end

Source/Falcor/Utils/Debug/WarpProfiler.cpp:62–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void WarpProfiler::end(RenderContext* pRenderContext)
63{
64 FALCOR_CHECK(mActive, "WarpProfiler: end() called without preceding begin().");
65
66 pRenderContext->copyResource(mpHistogramStagingBuffer.get(), mpHistogramBuffer.get());
67
68 // Submit command list and insert signal.
69 pRenderContext->submit(false);
70 pRenderContext->signal(mpFence.get());
71
72 mActive = false;
73 mDataWaiting = true;
74}
75
76std::vector<uint32_t> WarpProfiler::getWarpHistogram(const uint32_t binIndex, const uint32_t binCount)
77{

Callers 1

renderUIMethod · 0.45

Calls 4

copyResourceMethod · 0.80
getMethod · 0.45
submitMethod · 0.45
signalMethod · 0.45

Tested by

no test coverage detected