Cocoa: Add support for VK_EXT_metal_surface

From upstream: c5cb4a253a.
This commit is contained in:
Luflosi
2020-01-17 13:14:32 +01:00
parent 43326c9bd0
commit f6901e4a3d
5 changed files with 69 additions and 5 deletions

5
glfw/vulkan.c vendored
View File

@@ -128,8 +128,13 @@ bool _glfwInitVulkan(int mode)
else if (strcmp(ep[i].extensionName, "VK_KHR_win32_surface") == 0)
_glfw.vk.KHR_win32_surface = true;
#elif defined(_GLFW_COCOA)
#if defined(VK_USE_PLATFORM_MACOS_MVK)
else if (strcmp(ep[i].extensionName, "VK_MVK_macos_surface") == 0)
_glfw.vk.MVK_macos_surface = true;
#elif defined(VK_USE_PLATFORM_METAL_EXT)
else if (strcmp(ep[i].extensionName, "VK_EXT_metal_surface") == 0)
_glfw.vk.EXT_metal_surface = true;
#endif
#elif defined(_GLFW_X11)
else if (strcmp(ep[i].extensionName, "VK_KHR_xlib_surface") == 0)
_glfw.vk.KHR_xlib_surface = true;