cocoa/uikit: Use VK_EXT_metal_surface in Vulkan_GetInstanceExtensions

Replaces VK_MVK_macos_surface and VK_MVK_ios_surface
This commit is contained in:
Luke Street 2022-05-20 09:55:06 -07:00
parent df8b82f8c8
commit 47c92fae24
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ SDL_bool Cocoa_Vulkan_GetInstanceExtensions(_THIS,
const char **names) const char **names)
{ {
static const char *const extensionsForCocoa[] = { static const char *const extensionsForCocoa[] = {
VK_KHR_SURFACE_EXTENSION_NAME, VK_MVK_MACOS_SURFACE_EXTENSION_NAME VK_KHR_SURFACE_EXTENSION_NAME, VK_EXT_METAL_SURFACE_EXTENSION_NAME
}; };
if (!_this->vulkan_config.loader_handle) { if (!_this->vulkan_config.loader_handle) {
SDL_SetError("Vulkan is not loaded"); SDL_SetError("Vulkan is not loaded");

View File

@ -178,7 +178,7 @@ SDL_bool UIKit_Vulkan_GetInstanceExtensions(_THIS,
const char **names) const char **names)
{ {
static const char *const extensionsForUIKit[] = { static const char *const extensionsForUIKit[] = {
VK_KHR_SURFACE_EXTENSION_NAME, VK_MVK_IOS_SURFACE_EXTENSION_NAME VK_KHR_SURFACE_EXTENSION_NAME, VK_EXT_METAL_SURFACE_EXTENSION_NAME
}; };
if (!_this->vulkan_config.loader_handle) { if (!_this->vulkan_config.loader_handle) {
SDL_SetError("Vulkan is not loaded"); SDL_SetError("Vulkan is not loaded");