MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / LoadConfigurationsPath

Method LoadConfigurationsPath

vkconfig_core/configuration_manager.cpp:183–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void ConfigurationManager::LoadConfigurationsPath(const LayerManager &layers) {
184 const std::vector<Path> &configuration_files = ::CollectFilePaths(Path(Path::CONFIGS));
185 for (std::size_t i = 0, n = configuration_files.size(); i < n; ++i) {
186 Configuration configuration;
187 const bool result = configuration.Load(configuration_files[i], layers);
188 if (!result) {
189 continue;
190 }
191
192 if (this->FindConfiguration(configuration.key) != nullptr) {
193 continue;
194 }
195
196 /*
197 std::string missing_layer;
198 if (!HasMissingLayer(configuration.parameters, layers, missing_layer)) {
199 //OrderParameter(configuration.parameters, layers);
200 }
201 */
202
203 available_configurations.push_back(configuration);
204 }
205}
206
207static Path MakeConfigurationPath(const std::string &key) { return RelativePath(Path::CONFIGS) + "/" + key + ".json"; }
208

Callers 1

LoadAllConfigurationsMethod · 0.95

Calls 4

FindConfigurationMethod · 0.95
CollectFilePathsFunction · 0.85
PathClass · 0.85
LoadMethod · 0.45

Tested by

no test coverage detected