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

Method initGraph

Source/Mogwai/Mogwai.cpp:416–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414 }
415
416 void Renderer::initGraph(const ref<RenderGraph>& pGraph, GraphData* pData)
417 {
418 if (!pData)
419 {
420 mGraphs.push_back({});
421 pData = &mGraphs.back();
422 }
423 GraphData& data = *pData;
424
425 // Setup graph data.
426 data = {};
427 data.pGraph = pGraph;
428 data.pGraph->onResize(getTargetFbo().get());
429 data.pGraph->setScene(mpScene);
430 if (data.pGraph->getOutputCount() != 0)
431 {
432 data.mainOutput = data.pGraph->getOutputName(0);
433 }
434
435 // Store the original outputs.
436 data.originalOutputs = getGraphOutputs(pGraph);
437
438 for (auto& e : mpExtensions) e->addGraph(pGraph.get());
439 }
440
441 void Renderer::loadScriptDialog()
442 {

Callers

nothing calls this directly

Calls 7

backMethod · 0.80
push_backMethod · 0.45
onResizeMethod · 0.45
getMethod · 0.45
setSceneMethod · 0.45
getOutputNameMethod · 0.45
addGraphMethod · 0.45

Tested by

no test coverage detected