Added config changes to support Vulkan 1.3.216.0 and later with portability bit set on macOS

This commit is contained in:
Rolf Hunt 2022-06-23 15:21:14 -05:00
parent 4390eb0ff8
commit 753b2614f6
2 changed files with 11 additions and 0 deletions

View file

@ -248,6 +248,10 @@ namespace vks
deviceExtensions.push_back(VK_KHR_SWAPCHAIN_EXTENSION_NAME);
}
#if defined(VK_USE_PLATFORM_MACOS_MVK)
deviceExtensions.push_back("VK_KHR_portability_subset");
#endif
VkDeviceCreateInfo deviceCreateInfo = {};
deviceCreateInfo.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO;
deviceCreateInfo.queueCreateInfoCount = static_cast<uint32_t>(queueCreateInfos.size());;