mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-21 11:50:04 +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 )
|
if( WIN32 )
|
||||||
target_compile_definitions( ${TARGET_NAME} PUBLIC VK_USE_PLATFORM_WIN32_KHR )
|
target_compile_definitions( ${TARGET_NAME} PUBLIC VK_USE_PLATFORM_WIN32_KHR )
|
||||||
elseif( APPLE )
|
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 )
|
elseif( UNIX )
|
||||||
target_compile_definitions( ${TARGET_NAME} PUBLIC VK_USE_PLATFORM_XCB_KHR )
|
target_compile_definitions( ${TARGET_NAME} PUBLIC VK_USE_PLATFORM_XCB_KHR )
|
||||||
else()
|
else()
|
||||||
|
@ -482,12 +482,8 @@ namespace vk
|
|||||||
extensions.push_back( VK_KHR_SURFACE_EXTENSION_NAME );
|
extensions.push_back( VK_KHR_SURFACE_EXTENSION_NAME );
|
||||||
#if defined( VK_USE_PLATFORM_ANDROID_KHR )
|
#if defined( VK_USE_PLATFORM_ANDROID_KHR )
|
||||||
extensions.push_back( VK_KHR_ANDROID_SURFACE_EXTENSION_NAME );
|
extensions.push_back( VK_KHR_ANDROID_SURFACE_EXTENSION_NAME );
|
||||||
#elif defined( VK_USE_PLATFORM_IOS_MVK )
|
#elif defined( VK_USE_PLATFORM_METAL_EXT )
|
||||||
extensions.push_back( VK_MVK_IOS_SURFACE_EXTENSION_NAME );
|
extensions.push_back( VK_EXT_METAL_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_VI_NN )
|
#elif defined( VK_USE_PLATFORM_VI_NN )
|
||||||
extensions.push_back( VK_NN_VI_SURFACE_EXTENSION_NAME );
|
extensions.push_back( VK_NN_VI_SURFACE_EXTENSION_NAME );
|
||||||
#elif defined( VK_USE_PLATFORM_WAYLAND_KHR )
|
#elif defined( VK_USE_PLATFORM_WAYLAND_KHR )
|
||||||
|
Loading…
Reference in New Issue
Block a user