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

Function GetLayersSettingsPath

vkconfig_core/path.cpp:396–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396static const std::string GetLayersSettingsPath() {
397#if VKC_ENV == VKC_ENV_WIN32
398 const std::string layers_settings_path = "/" + VKCONFIG_VERSION + "/override";
399#elif VKC_ENV == VKC_ENV_UNIX
400 const std::string layers_settings_path = "/settings.d";
401#else
402#error Unknown platform
403#endif
404
405 std::string result = qgetenv("VK_LAYER_SETTINGS_PATH").toStdString();
406 if (result.empty()) {
407 result = GetAppDataDir() + layers_settings_path;
408 }
409 if (result.find("vk_layer_settings.txt") == std::string::npos) {
410 result += "/vk_layer_settings.txt";
411 }
412
413 return result;
414}
415
416static const std::string GetLoaderSettingsPath() {
417#if VKC_ENV == VKC_ENV_WIN32

Callers 1

PathMethod · 0.85

Calls 1

GetAppDataDirFunction · 0.85

Tested by

no test coverage detected