From eee56e4f36650f9c7ef5cc9fba209d3f6fa07f4a Mon Sep 17 00:00:00 2001 From: Kearwood Gilbert Date: Fri, 12 Jan 2024 21:22:19 -0800 Subject: [PATCH] Add VK_KHR_portability_subset to support MacOS --- kraken/KRDeviceManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kraken/KRDeviceManager.cpp b/kraken/KRDeviceManager.cpp index 3ea2416..e64aacc 100644 --- a/kraken/KRDeviceManager.cpp +++ b/kraken/KRDeviceManager.cpp @@ -151,7 +151,10 @@ void KRDeviceManager::createDevices() const std::vector deviceExtensions = { VK_KHR_SWAPCHAIN_EXTENSION_NAME, - VK_EXT_DESCRIPTOR_INDEXING_EXTENSION_NAME + VK_EXT_DESCRIPTOR_INDEXING_EXTENSION_NAME, +#if defined(__APPLE__) + "VK_KHR_portability_subset", +#endif }; std::vector> candidateDevices;