Package org.lwjgl.vulkan
Class KHRWaylandSurface
- java.lang.Object
-
- org.lwjgl.vulkan.KHRWaylandSurface
-
public class KHRWaylandSurface extends java.lang.Object
TheVK_KHR_wayland_surface
extension is an instance extension. It provides a mechanism to create aVkSurfaceKHR
object (defined by theVK_KHR_surface
extension) that refers to a Waylandwl_surface
, as well as a query to determine support for rendering to a Wayland compositor.- Name String
VK_KHR_wayland_surface
- Extension Type
- Instance extension
- Registered Extension Number
- 7
- 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.String
VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME
The extension name.static int
VK_KHR_WAYLAND_SURFACE_SPEC_VERSION
The extension specification version.static int
VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR
ExtendsVkStructureType
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
nvkCreateWaylandSurfaceKHR(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface)
Unsafe version of:CreateWaylandSurfaceKHR
static int
vkCreateWaylandSurfaceKHR(VkInstance instance, VkWaylandSurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface)
Array version of:CreateWaylandSurfaceKHR
static int
vkCreateWaylandSurfaceKHR(VkInstance instance, VkWaylandSurfaceCreateInfoKHR pCreateInfo, VkAllocationCallbacks pAllocator, java.nio.LongBuffer pSurface)
Create aVkSurfaceKHR
object for a Wayland window.static boolean
vkGetPhysicalDeviceWaylandPresentationSupportKHR(VkPhysicalDevice physicalDevice, int queueFamilyIndex, long display)
Query physical device for presentation to Wayland.
-
-
-
Field Detail
-
VK_KHR_WAYLAND_SURFACE_SPEC_VERSION
public static final int VK_KHR_WAYLAND_SURFACE_SPEC_VERSION
The extension specification version.- See Also:
- Constant Field Values
-
VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME
public static final java.lang.String VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME
The extension name.- See Also:
- Constant Field Values
-
VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR
public static final int VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR
ExtendsVkStructureType
.- See Also:
- Constant Field Values
-
-
Method Detail
-
nvkCreateWaylandSurfaceKHR
public static int nvkCreateWaylandSurfaceKHR(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface)
Unsafe version of:CreateWaylandSurfaceKHR
-
vkCreateWaylandSurfaceKHR
public static int vkCreateWaylandSurfaceKHR(VkInstance instance, VkWaylandSurfaceCreateInfoKHR pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, java.nio.LongBuffer pSurface)
Create aVkSurfaceKHR
object for a Wayland window.C Specification
To create a
VkSurfaceKHR
object for a Wayland surface, call:VkResult vkCreateWaylandSurfaceKHR( VkInstance instance, const VkWaylandSurfaceCreateInfoKHR* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
Valid Usage (Implicit)
instance
must be a validVkInstance
handlepCreateInfo
must be a valid pointer to a validVkWaylandSurfaceCreateInfoKHR
structure- If
pAllocator
is notNULL
,pAllocator
must be a valid pointer to a validVkAllocationCallbacks
structure pSurface
must be a valid pointer to aVkSurfaceKHR
handle
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 theVkWaylandSurfaceCreateInfoKHR
structure containing 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 aVkSurfaceKHR
handle in which the created surface object is returned.
-
vkGetPhysicalDeviceWaylandPresentationSupportKHR
public static boolean vkGetPhysicalDeviceWaylandPresentationSupportKHR(VkPhysicalDevice physicalDevice, int queueFamilyIndex, long display)
Query physical device for presentation to Wayland.C Specification
To determine whether a queue family of a physical device supports presentation to a Wayland compositor, call:
VkBool32 vkGetPhysicalDeviceWaylandPresentationSupportKHR( VkPhysicalDevice physicalDevice, uint32_t queueFamilyIndex, struct wl_display* display);
Description
This platform-specific function can be called prior to creating a surface.
Valid Usage
queueFamilyIndex
must be less thanpQueueFamilyPropertyCount
returned byvkGetPhysicalDeviceQueueFamilyProperties
for the givenphysicalDevice
Valid Usage (Implicit)
physicalDevice
must be a validVkPhysicalDevice
handledisplay
must be a valid pointer to awl_display
value
- Parameters:
physicalDevice
- the physical device.queueFamilyIndex
- the queue family index.display
- a pointer to thewl_display
associated with a Wayland compositor.
-
vkCreateWaylandSurfaceKHR
public static int vkCreateWaylandSurfaceKHR(VkInstance instance, VkWaylandSurfaceCreateInfoKHR pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pSurface)
Array version of:CreateWaylandSurfaceKHR
-
-