public class KHRXlibSurface
extends java.lang.Object
VK_KHR_xlib_surface extension is an instance extension. It provides a mechanism to create a VkSurfaceKHR object (defined by the VK_KHR_surface extension) that refers to an X11 Window, using the Xlib client-side library, as well as a query to determine support for rendering via Xlib.
VK_KHR_xlib_surfaceVK_KHR_surface| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VK_KHR_XLIB_SURFACE_EXTENSION_NAME
The extension name.
|
static int |
VK_KHR_XLIB_SURFACE_SPEC_VERSION
The extension specification version.
|
static int |
VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR
Extends
VkStructureType. |
| Modifier and Type | Method and Description |
|---|---|
static int |
nvkCreateXlibSurfaceKHR(org.lwjgl.vulkan.VkInstance instance,
long pCreateInfo,
long pAllocator,
long pSurface)
Unsafe version of:
CreateXlibSurfaceKHR |
static int |
vkCreateXlibSurfaceKHR(org.lwjgl.vulkan.VkInstance instance,
VkXlibSurfaceCreateInfoKHR pCreateInfo,
VkAllocationCallbacks pAllocator,
long[] pSurface)
Array version of:
CreateXlibSurfaceKHR |
static int |
vkCreateXlibSurfaceKHR(org.lwjgl.vulkan.VkInstance instance,
VkXlibSurfaceCreateInfoKHR pCreateInfo,
VkAllocationCallbacks pAllocator,
java.nio.LongBuffer pSurface)
Create a
VkSurfaceKHR object for an X11 window, using the Xlib client-side library. |
static boolean |
vkGetPhysicalDeviceXlibPresentationSupportKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
int queueFamilyIndex,
long dpy,
long visualID)
Query physical device for presentation to X11 server using Xlib.
|
public static final int VK_KHR_XLIB_SURFACE_SPEC_VERSION
public static final java.lang.String VK_KHR_XLIB_SURFACE_EXTENSION_NAME
public static final int VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR
VkStructureType.public static int nvkCreateXlibSurfaceKHR(org.lwjgl.vulkan.VkInstance instance,
long pCreateInfo,
long pAllocator,
long pSurface)
CreateXlibSurfaceKHRpublic static int vkCreateXlibSurfaceKHR(org.lwjgl.vulkan.VkInstance instance,
VkXlibSurfaceCreateInfoKHR pCreateInfo,
@Nullable
VkAllocationCallbacks pAllocator,
java.nio.LongBuffer pSurface)
VkSurfaceKHR object for an X11 window, using the Xlib client-side library.
To create a VkSurfaceKHR object for an X11 window, using the Xlib client-side library, call:
VkResult vkCreateXlibSurfaceKHR(
VkInstance instance,
const VkXlibSurfaceCreateInfoKHR* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkSurfaceKHR* pSurface);
instance must be a valid VkInstance handlepCreateInfo must be a valid pointer to a valid VkXlibSurfaceCreateInfoKHR structurepAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structurepSurface must be a valid pointer to a VkSurfaceKHR handleinstance - the instance to associate the surface with.pCreateInfo - a pointer to a VkXlibSurfaceCreateInfoKHR structure containing the parameters affecting the creation of the surface object.pAllocator - the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation).pSurface - a pointer to a VkSurfaceKHR handle in which the created surface object is returned.public static boolean vkGetPhysicalDeviceXlibPresentationSupportKHR(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice,
int queueFamilyIndex,
long dpy,
long visualID)
To determine whether a queue family of a physical device supports presentation to an X11 server, using the Xlib client-side library, call:
VkBool32 vkGetPhysicalDeviceXlibPresentationSupportKHR(
VkPhysicalDevice physicalDevice,
uint32_t queueFamilyIndex,
Display* dpy,
VisualID visualID);
This platform-specific function can be called prior to creating a surface.
queueFamilyIndex must be less than pQueueFamilyPropertyCount returned by vkGetPhysicalDeviceQueueFamilyProperties for the given physicalDevicephysicalDevice must be a valid VkPhysicalDevice handledpy must be a valid pointer to a Display valuephysicalDevice - the physical device.queueFamilyIndex - the queue family index.dpy - a pointer to an Xlib Display connection to the server.public static int vkCreateXlibSurfaceKHR(org.lwjgl.vulkan.VkInstance instance,
VkXlibSurfaceCreateInfoKHR pCreateInfo,
@Nullable
VkAllocationCallbacks pAllocator,
long[] pSurface)
CreateXlibSurfaceKHRCopyright LWJGL. All Rights Reserved. License terms.