| 76 | } |
| 77 | |
| 78 | void 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 | |
| 100 | void RenderGraphEditor::onDroppedFile(const std::filesystem::path& path) |
| 101 | { |
nothing calls this directly
no test coverage detected