| 372 | } |
| 373 | |
| 374 | void Renderer::removeGraph(const ref<RenderGraph>& pGraph) |
| 375 | { |
| 376 | for (auto& e : mpExtensions) e->removeGraph(pGraph.get()); |
| 377 | size_t i = 0; |
| 378 | for (; i < mGraphs.size(); i++) if (mGraphs[i].pGraph == pGraph) break; |
| 379 | FALCOR_ASSERT(i < mGraphs.size()); |
| 380 | mGraphs.erase(mGraphs.begin() + i); |
| 381 | if (mActiveGraph >= i && mActiveGraph > 0) mActiveGraph--; |
| 382 | setActiveGraph(mActiveGraph); |
| 383 | } |
| 384 | |
| 385 | void Renderer::removeGraph(const std::string& graphName) |
| 386 | { |
no test coverage detected