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

Function GetVulkanDir

vkconfig_core/path.cpp:445–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445static const std::string GetVulkanDir() {
446 const char* TABLE[] = {
447 "", // PLATFORM_WINDOWS_X86
448 "", // PLATFORM_WINDOWS_ARM
449 "/usr", // PLATFORM_LINUX
450 "/usr/local", // PLATFORM_MACOS
451 "", // PLATFORM_ANDROID
452 "" // PLATFORM_IOS
453 };
454 static_assert(std::size(TABLE) == PLATFORM_COUNT, "The tranlation table size doesn't match the enum number of elements");
455
456 std::string absolute_path = ::GetSDKDir();
457 if (absolute_path.empty()) {
458 return TABLE[VKC_PLATFORM];
459 } else {
460 return absolute_path;
461 }
462}
463
464static const std::string GetVulkanBinDir() {
465 const std::string TABLE[] = {

Callers 3

GetVulkanBinDirFunction · 0.85
GetVulkanContentDirFunction · 0.85
GetVulkanProfilesDirFunction · 0.85

Calls 1

GetSDKDirFunction · 0.85

Tested by

no test coverage detected