Cocoa: Add support for VK_EXT_metal_surface

This adds optional support for the VK_EXT_metal_surface instance
extension.

Closes #1619.
This commit is contained in:
ByunghoonKim
2020-01-06 00:46:42 +09:00
committed by Camilla Löwy
parent 9372ba95fa
commit c5cb4a253a
8 changed files with 74 additions and 8 deletions

View File

@@ -145,6 +145,8 @@ elseif (WIN32)
elseif (APPLE)
set(_GLFW_COCOA 1)
message(STATUS "Using Cocoa for window creation")
set(VK_USE_PLATFORM_METAL_EXT 1)
message(STATUS "Using VK_EXT_metal_surface")
elseif (UNIX)
set(_GLFW_X11 1)
message(STATUS "Using X11 for window creation")