Class KHRWaylandSurface

  • public class KHRWaylandSurface
    extends java.lang.Object
    The VK_KHR_wayland_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 a Wayland wl_surface, as well as a query to determine support for rendering to a Wayland compositor.
    Name String
    Extension Type
    Instance extension
    Registered Extension Number
    Extension and Version Dependencies
    Last Modified Date
    IP Status
    No known IP claims.
    • 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 Detail


        public static final int VK_KHR_WAYLAND_SURFACE_SPEC_VERSION
        The extension specification version.
        See Also:
        Constant Field Values

        public static final java.lang.String VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME
        The extension name.
        See Also:
        Constant Field Values

        Extends VkStructureType.
        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,
                                                    VkAllocationCallbacks pAllocator,
                                                    java.nio.LongBuffer pSurface)
        Create a VkSurfaceKHR 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 valid VkInstance handle
        • pCreateInfo must be a valid pointer to a valid VkWaylandSurfaceCreateInfoKHR structure
        • If pAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structure
        • pSurface must be a valid pointer to a VkSurfaceKHR handle
        Return Codes
        On success, this command returns
        On failure, this command returns
        See Also

        VkAllocationCallbacks, VkWaylandSurfaceCreateInfoKHR

        instance - the instance to associate the surface with.
        pCreateInfo - a pointer to an instance of the VkWaylandSurfaceCreateInfoKHR 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 a VkSurfaceKHR 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);

        This platform-specific function can be called prior to creating a surface.

        Valid Usage
        • queueFamilyIndex must be less than pQueueFamilyPropertyCount returned by vkGetPhysicalDeviceQueueFamilyProperties for the given physicalDevice
        Valid Usage (Implicit)
        • physicalDevice must be a valid VkPhysicalDevice handle
        • display must be a valid pointer to a wl_display value
        physicalDevice - the physical device.
        queueFamilyIndex - the queue family index.
        display - a pointer to the wl_display associated with a Wayland compositor.