From e0fcd7344ed6f7ccaca0df70ab8f817ffa094834 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Thu, 17 Feb 2022 14:48:54 +0100 Subject: [PATCH] Fixed VulkanUsage::Init for Vulkan SDK not supporting new Vulkan 1.3, to fix CI builds --- src/VulkanSample.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/VulkanSample.cpp b/src/VulkanSample.cpp index 87f8a42..dedc3ee 100644 --- a/src/VulkanSample.cpp +++ b/src/VulkanSample.cpp @@ -486,9 +486,15 @@ void VulkanUsage::Init() switch(appInfo.apiVersion) { case VK_API_VERSION_1_0: wprintf(L"1.0\n"); break; +#ifdef VK_VERSION_1_1 case VK_API_VERSION_1_1: wprintf(L"1.1\n"); break; +#endif +#ifdef VK_VERSION_1_2 case VK_API_VERSION_1_2: wprintf(L"1.2\n"); break; +#endif +#ifdef VK_VERSION_1_3 case VK_API_VERSION_1_3: wprintf(L"1.3\n"); break; +#endif default: assert(0); }