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

Method onLoad

Source/Tools/RenderGraphEditor/RenderGraphEditor.cpp:78–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void RenderGraphEditor::onLoad(RenderContext* pRenderContext)
79{
80 mpDefaultIconTex = Texture::createFromFile(getDevice(), kDefaultPassIcon, false, false);
81 if (!mpDefaultIconTex)
82 FALCOR_THROW("Failed to load icon");
83
84 PluginManager::instance().loadAllPlugins();
85
86 if (!mOptions.graphFile.empty())
87 {
88 mViewerRunning = true;
89 loadGraphsFromFile(mOptions.graphFile, mOptions.graphName);
90
91 if (mOptions.runFromMogwai)
92 mUpdateFilePath = mOptions.graphFile;
93 }
94 else
95 {
96 createNewGraph("DefaultRenderGraph");
97 }
98}
99
100void RenderGraphEditor::onDroppedFile(const std::filesystem::path& path)
101{

Callers

nothing calls this directly

Calls 3

loadAllPluginsMethod · 0.80
getDeviceFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected