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

Method addOptions

Source/Falcor/Utils/Settings/Settings.cpp:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void Settings::addOptions(const nlohmann::json& options)
83{
84 nlohmann::json flattened = settings::detail::flattenDictionary(options);
85 for (auto& it : flattened.items())
86 getActive().mOptions.removePrefix(it.key());
87 getActive().mOptions.addDict(flattened);
88 updateSearchPaths(flattened);
89}
90
91void Settings::addOptions(const pybind11::dict& options)
92{

Callers 3

Settings.cppFile · 0.80
CPU_TESTFunction · 0.80

Calls 7

flattenDictionaryFunction · 0.85
removePrefixMethod · 0.80
addDictMethod · 0.80
to_jsonFunction · 0.50
parseFunction · 0.50
itemsMethod · 0.45
keyMethod · 0.45

Tested by 1

CPU_TESTFunction · 0.64