| 487 | } |
| 488 | |
| 489 | static const std::string GetVulkanProfilesDir() { |
| 490 | const std::string TABLE[] = { |
| 491 | "/Config/VK_LAYER_KHRONOS_profiles", // ENVIRONMENT_WIN32 |
| 492 | "/share/vulkan/config/VK_LAYER_KHRONOS_profiles" // ENVIRONMENT_UNIX |
| 493 | }; |
| 494 | static_assert(std::size(TABLE) == ENVIRONMENT_COUNT); |
| 495 | |
| 496 | return ::GetVulkanDir() + TABLE[VKC_ENV]; |
| 497 | } |
| 498 | |
| 499 | Path::Path(Path::Builtin path) { |
| 500 | bool is_file = false; |