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

Method removeGraph

Source/Mogwai/Mogwai.cpp:374–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

test_SceneCache.pyFile · 0.80

Calls 4

eraseMethod · 0.80
getMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected