| 980 | } |
| 981 | |
| 982 | static VkSurfaceKHR AppCreateMacOSSurface(AppInstance &inst) { |
| 983 | VkMacOSSurfaceCreateInfoMVK createInfo; |
| 984 | createInfo.sType = VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK; |
| 985 | createInfo.pNext = nullptr; |
| 986 | createInfo.flags = 0; |
| 987 | createInfo.pView = inst.macos_window; |
| 988 | |
| 989 | VkSurfaceKHR surface; |
| 990 | VkResult err = vkCreateMacOSSurfaceMVK(inst.instance, &createInfo, nullptr, &surface); |
| 991 | if (err) THROW_VK_ERR("vkCreateMacOSSurfaceMVK", err); |
| 992 | return surface; |
| 993 | } |
| 994 | |
| 995 | static void AppDestroyMacOSWindow(AppInstance &inst) { DestroyMetalView(inst.macos_window); } |
| 996 | #endif // VK_USE_PLATFORM_MACOS_MVK |
nothing calls this directly
no test coverage detected