-
I want to implement different resolutions for a game in fullscreen mode. But vkGetPhysicalDeviceSurfaceCapabilitiesKHR return to me only one resolution. After searching I see that Vulkan takes a size from frame (NSWindow, NSView, CALayer). But If I set the size to frame the game rendering not at all screen, only on part of it. This is not what I want. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you want to do different resolutions, you can use Quartz Display Services to change the resolution. Then you can create a fullscreen One of these days, I should implement |
Beta Was this translation helpful? Give feedback.
If you want to do different resolutions, you can use Quartz Display Services to change the resolution. Then you can create a fullscreen
NSWindow
andNSView
for that resolution, or resize one you already have to that resolution.MTKView
does much of the work for you, but I don't see how it handles fullscreen resolution changes. Can you post your modified sample so I can see what you're talking about?One of these days, I should implement
VK_KHR_display
andVK_KHR_display_swapchain
so thatvkGetPhysicalDeviceSurfaceCapabilitiesKHR()
can report multiple resolutions for a fullscreen surface.