public class EXTAcquireXlibDisplay
extends java.lang.Object
VK_EXT_acquire_xlib_displayVK_EXT_direct_mode_display| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VK_EXT_ACQUIRE_XLIB_DISPLAY_EXTENSION_NAME
The extension name.
|
static int |
VK_EXT_ACQUIRE_XLIB_DISPLAY_SPEC_VERSION
The extension specification version.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
nvkGetRandROutputDisplayEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long dpy,
long rrOutput,
long pDisplay)
Unsafe version of:
GetRandROutputDisplayEXT |
static int |
vkAcquireXlibDisplayEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long dpy,
long display)
Acquire access to a VkDisplayKHR using Xlib.
|
static int |
vkGetRandROutputDisplayEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long dpy,
long rrOutput,
long[] pDisplay)
Array version of:
GetRandROutputDisplayEXT |
static int |
vkGetRandROutputDisplayEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long dpy,
long rrOutput,
java.nio.LongBuffer pDisplay)
Query the VkDisplayKHR corresponding to an X11 RandR Output.
|
public static final int VK_EXT_ACQUIRE_XLIB_DISPLAY_SPEC_VERSION
public static final java.lang.String VK_EXT_ACQUIRE_XLIB_DISPLAY_EXTENSION_NAME
public static int vkAcquireXlibDisplayEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long dpy,
long display)
To acquire permission to directly access a display in Vulkan from an X11 server, call:
VkResult vkAcquireXlibDisplayEXT(
VkPhysicalDevice physicalDevice,
Display* dpy,
VkDisplayKHR display);
All permissions necessary to control the display are granted to the Vulkan instance associated with physicalDevice until the display is released or the X11 connection specified by dpy is terminated. Permission to access the display may be temporarily revoked during periods when the X11 server from which control was acquired itself loses access to display. During such periods, operations which require access to the display must fail with an approriate error code. If the X11 server associated with dpy does not own display, or if permission to access it has already been acquired by another entity, the call must return the error code ERROR_INITIALIZATION_FAILED.
One example of when an X11 server loses access to a display is when it loses ownership of its virtual terminal.
physicalDevice must be a valid VkPhysicalDevice handledpy must be a valid pointer to a Display valuedisplay must be a valid VkDisplayKHR handlephysicalDevice - The physical device the display is on.dpy - A connection to the X11 server that currently owns display.display - The display the caller wishes to control in Vulkan.public static int nvkGetRandROutputDisplayEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long dpy,
long rrOutput,
long pDisplay)
GetRandROutputDisplayEXTpublic static int vkGetRandROutputDisplayEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long dpy,
long rrOutput,
java.nio.LongBuffer pDisplay)
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);
If there is no VkDisplayKHR corresponding to rrOutput on physicalDevice, NULL_HANDLE must be returned in pDisplay.
physicalDevice must be a valid VkPhysicalDevice handledpy must be a valid pointer to a Display valuepDisplay must be a valid pointer to a VkDisplayKHR handlephysicalDevice - The physical device to query the display handle on.dpy - A connection to the X11 server from which rrOutput was queried.rrOutput - An X11 RandR output ID.pDisplay - The corresponding VkDisplayKHR handle will be returned here.public static int vkGetRandROutputDisplayEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
long dpy,
long rrOutput,
long[] pDisplay)
GetRandROutputDisplayEXTCopyright LWJGL. All Rights Reserved. License terms.