| 109 | } |
| 110 | |
| 111 | void RenderGraph::setScene(const ref<Scene>& pScene) |
| 112 | { |
| 113 | if (mpScene == pScene) |
| 114 | return; |
| 115 | |
| 116 | // @skallweit: check that scene resides on the same GPU device |
| 117 | |
| 118 | mpScene = pScene; |
| 119 | for (auto& it : mNodeData) |
| 120 | { |
| 121 | it.second.pPass->setScene(mpDevice->getRenderContext(), pScene); |
| 122 | } |
| 123 | mRecompile = true; |
| 124 | } |
| 125 | |
| 126 | ref<RenderPass> RenderGraph::createPass(const std::string& passName, const std::string& passType, const Properties& props) |
| 127 | { |
no outgoing calls