| 433 | static const std::string GetSDKDir() { return qgetenv("VULKAN_SDK").toStdString(); } |
| 434 | |
| 435 | static const std::string GetExplicitLayersDir() { |
| 436 | const std::string TABLE[] = { |
| 437 | "/Bin", // ENVIRONMENT_WIN32 |
| 438 | "/share/vulkan/explicit_layer.d" // ENVIRONMENT_UNIX |
| 439 | }; |
| 440 | static_assert(std::size(TABLE) == ENVIRONMENT_COUNT); |
| 441 | |
| 442 | return GetSDKDir() + TABLE[VKC_ENV]; |
| 443 | } |
| 444 | |
| 445 | static const std::string GetVulkanDir() { |
| 446 | const char* TABLE[] = { |