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

Function loadFailed

Source/Falcor/RenderGraph/RenderGraphImportExport.cpp:56–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54} // namespace
55
56bool loadFailed(std::exception e, const std::filesystem::path& path)
57{
58 logError(e.what());
59 auto res = msgBox(
60 "Error",
61 fmt::format("Error when importing graph from file '{}'\n{}\n\nWould you like to try and reload the file?", path.string(), e.what()),
62 MsgBoxType::YesNo
63 );
64 return (res == MsgBoxButton::No);
65}
66
67ref<RenderGraph> RenderGraphImporter::import(std::string graphName, std::filesystem::path path, std::string funcName)
68{

Callers 2

importMethod · 0.85
importAllGraphsMethod · 0.85

Calls 4

logErrorFunction · 0.85
whatMethod · 0.80
msgBoxFunction · 0.50
stringMethod · 0.45

Tested by

no test coverage detected