Function Prototype
vkGetPhysicalDeviceXcbPresentationSupportKHR
Query physical device for presentation to X11 server using XCB
To determine whether a queue family of a physical device supports presentation to an X11 server, using the XCB client-side library, call:
VkBool32 vkGetPhysicalDeviceXcbPresentationSupportKHR(
VkPhysicalDevice physicalDevice,
uint32_t queueFamilyIndex,
xcb_connection_t* connection,
xcb_visualid_t visual_id);
pub fn get_physical_device_xcb_presentation_support_khr(
physical_device: vk::PhysicalDevice,
queue_family_index: u32,
connection: *mut xcb_connection_t,
visual_id: xcb_visualid_t,
) -> vk::Bool32;
physicalDeviceis the physical device.queueFamilyIndexis the queue family index.connectionis a pointer to anxcb_connection_tto the X server.visual_idis an X11 visual (xcb_visualid_t).
This platform-specific function can be called prior to creating a surface.
Valid Usage
VUID-vkGetPhysicalDeviceXcbPresentationSupportKHR-queueFamilyIndex-01312
queueFamilyIndex must be less than
pQueueFamilyPropertyCount returned by
vkGetPhysicalDeviceQueueFamilyProperties for the given
physicalDevice
Valid Usage (Implicit)
VUID-vkGetPhysicalDeviceXcbPresentationSupportKHR-physicalDevice-parameter
physicalDevice must be a valid VkPhysicalDevice handle
VUID-vkGetPhysicalDeviceXcbPresentationSupportKHR-connection-parameter
connection must be a valid pointer to an xcb_connection_t value
Parent
VK_KHR_xcb_surfaceType
Function Prototype