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

Method loadAllPlugins

Source/Falcor/Core/Plugin.cpp:125–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void PluginManager::loadAllPlugins()
126{
127 CpuTimer timer;
128 timer.update();
129
130 std::ifstream ifs(getRuntimeDirectory() / "plugins" / "plugins.json");
131 auto json = nlohmann::json::parse(ifs);
132 size_t loadedCount = 0;
133 for (const auto& name : json)
134 {
135 if (loadPluginByName(name.get<std::string>()))
136 loadedCount++;
137 }
138
139 timer.update();
140 if (loadedCount > 0)
141 logInfo("Loaded {} plugin(s) in {:.3}s", loadedCount, timer.delta());
142}
143
144void PluginManager::releaseAllPlugins()
145{

Callers 4

onLoadMethod · 0.80
PYBIND11_MODULEFunction · 0.80
SampleAppMethod · 0.80
onLoadMethod · 0.80

Calls 4

logInfoFunction · 0.85
deltaMethod · 0.80
parseFunction · 0.50
updateMethod · 0.45

Tested by

no test coverage detected