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

Method ImportConfiguration

vkconfig_core/configuration_manager.cpp:363–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363bool ConfigurationManager::ImportConfiguration(const LayerManager &layers, const Path &full_import_path,
364 std::string &configuration_name) {
365 assert(!full_import_path.Empty());
366
367 this->last_path_import_config = full_import_path.AbsoluteDir();
368
369 Configuration configuration;
370 if (!configuration.Load(full_import_path, layers)) {
371 return false;
372 }
373
374 configuration_name = configuration.key =
375 MakeConfigurationName(this->available_configurations, configuration.key + " (Imported)");
376 this->available_configurations.push_back(configuration);
377 this->SortConfigurations();
378
379 return true;
380}
381
382bool ConfigurationManager::ExportConfiguration(const LayerManager &layers, const Path &full_export_path,
383 const std::string &configuration_name) {

Callers 5

GetConfigurationNameFunction · 0.80
RunLoaderImportFunction · 0.80
RunLayersOverrideFunction · 0.80
TESTFunction · 0.80

Calls 5

SortConfigurationsMethod · 0.95
MakeConfigurationNameFunction · 0.85
AbsoluteDirMethod · 0.80
EmptyMethod · 0.45
LoadMethod · 0.45

Tested by 1

TESTFunction · 0.64