mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-08 13:40:08 +00:00
Update the instance extensions list for WSI (#1875)
The VK_MVK_ios_surface and VK_MVK_macos_surface extensions have been deprecated by the VK_EXT_metal_surface extension. The VK_KHR_mir_surface extension has been removed from the Vulkan specification and, therefore, should not be used.
This commit is contained in:
parent
6604f5a1d9
commit
dceddb7e31
@ -56,7 +56,7 @@ function( vulkan_hpp__setup_platform )
|
||||
if( WIN32 )
|
||||
target_compile_definitions( ${TARGET_NAME} PUBLIC VK_USE_PLATFORM_WIN32_KHR )
|
||||
elseif( APPLE )
|
||||
target_compile_definitions( ${TARGET_NAME} PUBLIC VK_USE_PLATFORM_MACOS_MVK )
|
||||
target_compile_definitions( ${TARGET_NAME} PUBLIC VK_USE_PLATFORM_METAL_EXT )
|
||||
elseif( UNIX )
|
||||
target_compile_definitions( ${TARGET_NAME} PUBLIC VK_USE_PLATFORM_XCB_KHR )
|
||||
else()
|
||||
|
@ -482,12 +482,8 @@ namespace vk
|
||||
extensions.push_back( VK_KHR_SURFACE_EXTENSION_NAME );
|
||||
#if defined( VK_USE_PLATFORM_ANDROID_KHR )
|
||||
extensions.push_back( VK_KHR_ANDROID_SURFACE_EXTENSION_NAME );
|
||||
#elif defined( VK_USE_PLATFORM_IOS_MVK )
|
||||
extensions.push_back( VK_MVK_IOS_SURFACE_EXTENSION_NAME );
|
||||
#elif defined( VK_USE_PLATFORM_MACOS_MVK )
|
||||
extensions.push_back( VK_MVK_MACOS_SURFACE_EXTENSION_NAME );
|
||||
#elif defined( VK_USE_PLATFORM_MIR_KHR )
|
||||
extensions.push_back( VK_KHR_MIR_SURFACE_EXTENSION_NAME );
|
||||
#elif defined( VK_USE_PLATFORM_METAL_EXT )
|
||||
extensions.push_back( VK_EXT_METAL_SURFACE_EXTENSION_NAME );
|
||||
#elif defined( VK_USE_PLATFORM_VI_NN )
|
||||
extensions.push_back( VK_NN_VI_SURFACE_EXTENSION_NAME );
|
||||
#elif defined( VK_USE_PLATFORM_WAYLAND_KHR )
|
||||
|
Loading…
Reference in New Issue
Block a user