Package org.lwjgl.vulkan
Class KHRXlibSurface
- java.lang.Object
-
- org.lwjgl.vulkan.KHRXlibSurface
-
public class KHRXlibSurface extends java.lang.ObjectTheVK_KHR_xlib_surfaceextension is an instance extension. It provides a mechanism to create aVkSurfaceKHRobject (defined by theVK_KHR_surfaceextension) that refers to an X11Window, using the Xlib client-side library, as well as a query to determine support for rendering via Xlib.- Name String
VK_KHR_xlib_surface- Extension Type
- Instance extension
- Registered Extension Number
- 5
- Revision
- 6
- Extension and Version Dependencies
- Requires Vulkan 1.0
- Requires
VK_KHR_surface
- Contact
- Jesse Hall critsec
- Ian Elliott ianelliottus
- Last Modified Date
- 2015-11-28
- IP Status
- No known IP claims.
- Contributors
- Patrick Doane, Blizzard
- Jason Ekstrand, Intel
- Ian Elliott, LunarG
- Courtney Goeltzenleuchter, LunarG
- Jesse Hall, Google
- James Jones, NVIDIA
- Antoine Labour, Google
- Jon Leech, Khronos
- David Mao, AMD
- Norbert Nopper, Freescale
- Alon Or-bach, Samsung
- Daniel Rakos, AMD
- Graham Sellers, AMD
- Ray Smith, ARM
- Jeff Vigil, Qualcomm
- Chia-I Wu, LunarG
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVK_KHR_XLIB_SURFACE_EXTENSION_NAMEThe extension name.static intVK_KHR_XLIB_SURFACE_SPEC_VERSIONThe extension specification version.static intVK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHRExtendsVkStructureType.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnvkCreateXlibSurfaceKHR(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface)Unsafe version of:CreateXlibSurfaceKHRstatic intvkCreateXlibSurfaceKHR(VkInstance instance, VkXlibSurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface)Array version of:CreateXlibSurfaceKHRstatic intvkCreateXlibSurfaceKHR(VkInstance instance, VkXlibSurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, java.nio.LongBuffer pSurface)Create aVkSurfaceKHRobject for an X11 window, using the Xlib client-side library.static booleanvkGetPhysicalDeviceXlibPresentationSupportKHR(VkPhysicalDevice physicalDevice, int queueFamilyIndex, long dpy, long visualID)Query physical device for presentation to X11 server using Xlib.
-
-
-
Field Detail
-
VK_KHR_XLIB_SURFACE_SPEC_VERSION
public static final int VK_KHR_XLIB_SURFACE_SPEC_VERSION
The extension specification version.- See Also:
- Constant Field Values
-
VK_KHR_XLIB_SURFACE_EXTENSION_NAME
public static final java.lang.String VK_KHR_XLIB_SURFACE_EXTENSION_NAME
The extension name.- See Also:
- Constant Field Values
-
VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR
public static final int VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR
ExtendsVkStructureType.- See Also:
- Constant Field Values
-
-
Method Detail
-
nvkCreateXlibSurfaceKHR
public static int nvkCreateXlibSurfaceKHR(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface)
Unsafe version of:CreateXlibSurfaceKHR
-
vkCreateXlibSurfaceKHR
public static int vkCreateXlibSurfaceKHR(VkInstance instance, VkXlibSurfaceCreateInfoKHR pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, java.nio.LongBuffer pSurface)
Create aVkSurfaceKHRobject for an X11 window, using the Xlib client-side library.C Specification
To create a
VkSurfaceKHRobject for an X11 window, using the Xlib client-side library, call:VkResult vkCreateXlibSurfaceKHR( VkInstance instance, const VkXlibSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);Valid Usage (Implicit)
instancemust be a validVkInstancehandlepCreateInfomust be a valid pointer to a validVkXlibSurfaceCreateInfoKHRstructure- If
pAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacksstructure pSurfacemust be a valid pointer to aVkSurfaceKHRhandle
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
instance- the instance to associate the surface with.pCreateInfo- a pointer to an instance of theVkXlibSurfaceCreateInfoKHRstructure 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- points to aVkSurfaceKHRhandle in which the created surface object is returned.
-
vkGetPhysicalDeviceXlibPresentationSupportKHR
public static boolean vkGetPhysicalDeviceXlibPresentationSupportKHR(VkPhysicalDevice physicalDevice, int queueFamilyIndex, long dpy, long visualID)
Query physical device for presentation to X11 server using Xlib.C Specification
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);Description
This platform-specific function can be called prior to creating a surface.
Valid Usage
queueFamilyIndexmust be less thanpQueueFamilyPropertyCountreturned byvkGetPhysicalDeviceQueueFamilyPropertiesfor the givenphysicalDevice
Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandledpymust be a valid pointer to aDisplayvalue
- Parameters:
physicalDevice- the physical device.queueFamilyIndex- the queue family index.dpy- a pointer to an XlibDisplayconnection to the server.
-
vkCreateXlibSurfaceKHR
public static int vkCreateXlibSurfaceKHR(VkInstance instance, VkXlibSurfaceCreateInfoKHR pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pSurface)
Array version of:CreateXlibSurfaceKHR
-
-