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

Method executeActiveGraph

Source/Mogwai/Mogwai.cpp:641–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639 }
640
641 void Renderer::executeActiveGraph(RenderContext* pRenderContext)
642 {
643 if (mGraphs.empty()) return;
644
645 auto& data = mGraphs[mActiveGraph];
646 auto& pGraph = data.pGraph;
647
648 // Notify active graph of any scene updates.
649 if (data.sceneUpdates != IScene::UpdateFlags::None)
650 {
651 pGraph->onSceneUpdates(pRenderContext, data.sceneUpdates);
652 data.sceneUpdates = IScene::UpdateFlags::None;
653 }
654
655 // Execute graph.
656 pGraph->getPassesDictionary()[kRenderPassRefreshFlags] = RenderPassRefreshFlags::None;
657 pGraph->execute(pRenderContext);
658 }
659
660 void Renderer::beginFrame(RenderContext* pRenderContext, const ref<Fbo>& pTargetFbo)
661 {

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.45
onSceneUpdatesMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected