To query the basic capabilities of a surface, needed in order to create a swapchain, call:
// Provided by VK_KHR_surface VkResult vkGetPhysicalDeviceSurfaceCapabilitiesKHR( VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR* pSurfaceCapabilities);
physicalDeviceis the physical device that will be associated with the swapchain to be created, as described for vkCreateSwapchainKHR.
surfaceis the surface that will be associated with the swapchain.
pSurfaceCapabilitiesis a pointer to a VkSurfaceCapabilitiesKHR structure in which the capabilities are returned.
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.
Copyright (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.