From 4f03eb9d657fd74da341bb2b0d391c6b855073af Mon Sep 17 00:00:00 2001 From: Simon Kallweit Date: Tue, 27 Feb 2024 00:32:03 +0100 Subject: switch to vkCreateMetalSurfaceEXT and create metal layer in swapchain (#3627) * switch to vkCreateMetalSurfaceEXT and create metal layer in swapchain * fix window content size on macos --------- Co-authored-by: Yong He --- tools/gfx/vulkan/vk-module.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/gfx/vulkan/vk-module.h') diff --git a/tools/gfx/vulkan/vk-module.h b/tools/gfx/vulkan/vk-module.h index 9b8fe0ed3..4677bbe50 100644 --- a/tools/gfx/vulkan/vk-module.h +++ b/tools/gfx/vulkan/vk-module.h @@ -8,7 +8,7 @@ #if SLANG_WINDOWS_FAMILY # define VK_USE_PLATFORM_WIN32_KHR 1 #elif SLANG_APPLE_FAMILY -# define VK_USE_PLATFORM_MACOS_MVK 1 +# define VK_USE_PLATFORM_METAL_EXT 1 #else # define VK_USE_PLATFORM_XLIB_KHR 1 #endif -- cgit v1.2.3