Class EXTAcquireXlibDisplay
- Name String
VK_EXT_acquire_xlib_display- Extension Type
- Instance extension
- Registered Extension Number
- 90
- Revision
- 1
- Extension and Version Dependencies
VK_EXT_direct_mode_display- Contact
- James Jones cubanismo
Other Extension Metadata
- Last Modified Date
- 2016-12-13
- IP Status
- No known IP claims.
- Contributors
- Dave Airlie, Red Hat
- Pierre Boudier, NVIDIA
- James Jones, NVIDIA
- Damien Leone, NVIDIA
- Pierre-Loup Griffais, Valve
- Liam Middlebrook, NVIDIA
- Daniel Vetter, Intel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnvkGetRandROutputDisplayEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long dpy, long rrOutput, long pDisplay) Unsafe version of:GetRandROutputDisplayEXTstatic intvkAcquireXlibDisplayEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long dpy, long display) Acquire access to a VkDisplayKHR using Xlib.static intvkGetRandROutputDisplayEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long dpy, long rrOutput, long[] pDisplay) Array version of:GetRandROutputDisplayEXTstatic intvkGetRandROutputDisplayEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long dpy, long rrOutput, LongBuffer pDisplay) Query the VkDisplayKHR corresponding to an X11 RandR Output.
-
Field Details
-
VK_EXT_ACQUIRE_XLIB_DISPLAY_SPEC_VERSION
public static final int VK_EXT_ACQUIRE_XLIB_DISPLAY_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_EXT_ACQUIRE_XLIB_DISPLAY_EXTENSION_NAME
The extension name.- See Also:
-
-
Method Details
-
vkAcquireXlibDisplayEXT
public static int vkAcquireXlibDisplayEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long dpy, long display) Acquire access to a VkDisplayKHR using Xlib.C Specification
To acquire permission to directly access a display in Vulkan from an X11 server, call:
VkResult vkAcquireXlibDisplayEXT( VkPhysicalDevice physicalDevice, Display* dpy, VkDisplayKHR display);Description
All permissions necessary to control the display are granted to the Vulkan instance associated with
physicalDeviceuntil the display is released or the X11 connection specified bydpyis terminated. Permission to access the display may be temporarily revoked during periods when the X11 server from which control was acquired itself loses access todisplay. During such periods, operations which require access to the display must fail with an appropriate error code. If the X11 server associated withdpydoes not owndisplay, or if permission to access it has already been acquired by another entity, the call must return the error codeERROR_INITIALIZATION_FAILED.Note
One example of when an X11 server loses access to a display is when it loses ownership of its virtual terminal.
Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandledpymust be a valid pointer to aDisplayvaluedisplaymust be a validVkDisplayKHRhandledisplaymust have been created, allocated, or retrieved fromphysicalDevice
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
physicalDevice- The physical device the display is on.dpy- A connection to the X11 server that currently ownsdisplay.display- The display the caller wishes to control in Vulkan.
-
nvkGetRandROutputDisplayEXT
public static int nvkGetRandROutputDisplayEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long dpy, long rrOutput, long pDisplay) Unsafe version of:GetRandROutputDisplayEXT -
vkGetRandROutputDisplayEXT
public static int vkGetRandROutputDisplayEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long dpy, long rrOutput, LongBuffer pDisplay) Query the VkDisplayKHR corresponding to an X11 RandR Output.C Specification
When acquiring displays from an X11 server, an application may also wish to enumerate and identify them using a native handle rather than a
VkDisplayKHRhandle. To determine theVkDisplayKHRhandle corresponding to an X11 RandR Output, call:VkResult vkGetRandROutputDisplayEXT( VkPhysicalDevice physicalDevice, Display* dpy, RROutput rrOutput, VkDisplayKHR* pDisplay);Description
If there is no
VkDisplayKHRcorresponding torrOutputonphysicalDevice,NULL_HANDLEmust be returned inpDisplay.Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandledpymust be a valid pointer to aDisplayvaluepDisplaymust be a valid pointer to aVkDisplayKHRhandle
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
physicalDevice- The physical device to query the display handle on.dpy- A connection to the X11 server from whichrrOutputwas queried.rrOutput- An X11 RandR output ID.pDisplay- The correspondingVkDisplayKHRhandle will be returned here.
-
vkGetRandROutputDisplayEXT
public static int vkGetRandROutputDisplayEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long dpy, long rrOutput, long[] pDisplay) Array version of:GetRandROutputDisplayEXT
-