mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-15 07:00:58 +00:00
Enable VK_KHR_portability_enumeration for macOS on Vulkan SDK 1.3.211.0 or later
This commit is contained in:
parent
f81a8c1dd9
commit
23044c8e43
1 changed files with 8 additions and 1 deletions
|
@ -309,8 +309,15 @@ static void CreateVulkanInstance()
|
|||
{
|
||||
vkcontext.instanceExtensions.AddUnique( VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME );
|
||||
vkcontext.deviceProperties2Available = true;
|
||||
break;
|
||||
}
|
||||
#if defined(__APPLE__) && defined( VK_KHR_portability_enumeration )
|
||||
// SRS - Enable physical device enumeration when using the Vulkan loader on macOS (MoltenVK portability driver)
|
||||
if( idStr::Icmp( instanceExtensionProps[ i ].extensionName, VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME ) == 0 )
|
||||
{
|
||||
vkcontext.instanceExtensions.AddUnique( VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME );
|
||||
createInfo.flags |= VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
vkcontext.debugUtilsSupportAvailable = false;
|
||||
|
|
Loading…
Reference in a new issue