Function Prototype
vkGetRandROutputDisplayEXT
Query the VkDisplayKHR corresponding to an X11 RandR Output
When acquiring displays from an X11 server, an application may also wish to
enumerate and identify them using a native handle rather than a
VkDisplayKHR handle.
To determine the VkDisplayKHR handle corresponding to an X11 RandR
Output, call:
VkResult vkGetRandROutputDisplayEXT(
VkPhysicalDevice physicalDevice,
Display* dpy,
RROutput rrOutput,
VkDisplayKHR* pDisplay);
pub fn get_rand_r_output_display_ext(
physical_device: vk::PhysicalDevice,
dpy: *mut Display,
rr_output: RROutput,
p_display: *mut vk::DisplayKHR,
) -> vk::Result;
physicalDeviceThe physical device to query the display handle on.dpyA connection to the X11 server from whichrrOutputwas queried.rrOutputAn X11 RandR output ID.pDisplayThe corresponding VkDisplayKHR handle will be returned here.
If there is no VkDisplayKHR corresponding to rrOutput on
physicalDevice, VK_NULL_HANDLE must be returned in
pDisplay.
Valid Usage (Implicit)
VUID-vkGetRandROutputDisplayEXT-physicalDevice-parameter
physicalDevice must be a valid VkPhysicalDevice handle
VUID-vkGetRandROutputDisplayEXT-dpy-parameter
dpy must be a valid pointer to a Display value
VUID-vkGetRandROutputDisplayEXT-pDisplay-parameter
pDisplay must be a valid pointer to a VkDisplayKHR handle
Type
Function Prototype
Return Values
VK_SUCCESS
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_UNKNOWN
VK_ERROR_VALIDATION_FAILED