Function Prototype
vkGetPhysicalDeviceSurfaceSupportKHR
Query if presentation is supported
To determine whether a queue family of a physical device supports presentation to a given surface, call:
VkResult vkGetPhysicalDeviceSurfaceSupportKHR(
VkPhysicalDevice physicalDevice,
uint32_t queueFamilyIndex,
VkSurfaceKHR surface,
VkBool32* pSupported);
pub fn get_physical_device_surface_support_khr(
physical_device: vk::PhysicalDevice,
queue_family_index: u32,
surface: vk::SurfaceKHR,
p_supported: *mut vk::Bool32,
) -> vk::Result;
physicalDeviceis the physical device.queueFamilyIndexis the queue family.surfaceis the surface.pSupportedis a pointer to a VkBool32.VK_TRUEindicates support, andVK_FALSEindicates no support.
Valid Usage
VUID-vkGetPhysicalDeviceSurfaceSupportKHR-queueFamilyIndex-01269
queueFamilyIndex must be less than
pQueueFamilyPropertyCount returned by
vkGetPhysicalDeviceQueueFamilyProperties for the given
physicalDevice
Valid Usage (Implicit)
VUID-vkGetPhysicalDeviceSurfaceSupportKHR-physicalDevice-parameter
physicalDevice must be a valid VkPhysicalDevice handle
VUID-vkGetPhysicalDeviceSurfaceSupportKHR-surface-parameter
surface must be a valid VkSurfaceKHR handle
VUID-vkGetPhysicalDeviceSurfaceSupportKHR-pSupported-parameter
pSupported must be a valid pointer to a VkBool32 value
VUID-vkGetPhysicalDeviceSurfaceSupportKHR-commonparent
Both of physicalDevice, and surface must have been created, allocated, or retrieved from the same VkInstance
Parent
VK_KHR_surfaceType
Function Prototype