mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 06:41:41 +00:00
- pass NSView instance when creating macOS Vulkan surface
MoltenVK allows passing a layer, although Vulkan specs prohibit this https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/VkMacOSSurfaceCreateInfoMVK.html This helps with testing of renderer using Vulkan Portability Implementation
This commit is contained in:
parent
8219c3fd07
commit
a308becb48
1 changed files with 1 additions and 1 deletions
|
@ -903,7 +903,7 @@ bool I_CreateVulkanSurface(VkInstance instance, VkSurfaceKHR *surface)
|
||||||
windowCreateInfo.sType = VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK;
|
windowCreateInfo.sType = VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK;
|
||||||
windowCreateInfo.pNext = nullptr;
|
windowCreateInfo.pNext = nullptr;
|
||||||
windowCreateInfo.flags = 0;
|
windowCreateInfo.flags = 0;
|
||||||
windowCreateInfo.pView = [[CocoaVideo::GetWindow() contentView] layer];
|
windowCreateInfo.pView = [CocoaVideo::GetWindow() contentView];
|
||||||
|
|
||||||
const VkResult result = vkCreateMacOSSurfaceMVK(instance, &windowCreateInfo, nullptr, surface);
|
const VkResult result = vkCreateMacOSSurfaceMVK(instance, &windowCreateInfo, nullptr, surface);
|
||||||
return result == VK_SUCCESS;
|
return result == VK_SUCCESS;
|
||||||
|
|
Loading…
Reference in a new issue