| 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 | { |
nothing calls this directly
no test coverage detected