| 443 | } |
| 444 | |
| 445 | static 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 | |
| 464 | static const std::string GetVulkanBinDir() { |
| 465 | const std::string TABLE[] = { |
no test coverage detected