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

Function GetLoaderSettingsPath

vkconfig_core/path.cpp:416–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416static const std::string GetLoaderSettingsPath() {
417#if VKC_ENV == VKC_ENV_WIN32
418 const std::string loader_settings_path = "/vulkan";
419#elif VKC_ENV == VKC_ENV_UNIX
420 const std::string loader_settings_path = "/loader_settings.d";
421#else
422#error Unknown platform
423#endif
424
425 std::string result = GetAppDataDir() + loader_settings_path;
426 if (result.find("vk_loader_settings.json") == std::string::npos) {
427 result += "/vk_loader_settings.json";
428 }
429
430 return result;
431}
432
433static const std::string GetSDKDir() { return qgetenv("VULKAN_SDK").toStdString(); }
434

Callers 1

PathMethod · 0.85

Calls 1

GetAppDataDirFunction · 0.85

Tested by

no test coverage detected