Class EXTDirectfbSurface

java.lang.Object
org.lwjgl.vulkan.EXTDirectfbSurface

public class EXTDirectfbSurface extends Object
The VK_EXT_directfb_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 DirectFB IDirectFBSurface, as well as a query to determine support for rendering via DirectFB.
Name String
VK_EXT_directfb_surface
Extension Type
Instance extension
Registered Extension Number
347
Revision
1
Extension and Version Dependencies
VK_KHR_surface
Contact
Other Extension Metadata
Last Modified Date
2020-06-16
IP Status
No known IP claims.
Contributors
  • Nicolas Caramelli
  • Field Details

    • VK_EXT_DIRECTFB_SURFACE_SPEC_VERSION

      public static final int VK_EXT_DIRECTFB_SURFACE_SPEC_VERSION
      The extension specification version.
      See Also:
    • VK_EXT_DIRECTFB_SURFACE_EXTENSION_NAME

      public static final String VK_EXT_DIRECTFB_SURFACE_EXTENSION_NAME
      The extension name.
      See Also:
    • VK_STRUCTURE_TYPE_DIRECTFB_SURFACE_CREATE_INFO_EXT

      public static final int VK_STRUCTURE_TYPE_DIRECTFB_SURFACE_CREATE_INFO_EXT
      Extends VkStructureType.
      See Also:
  • Method Details

    • nvkCreateDirectFBSurfaceEXT

      public static int nvkCreateDirectFBSurfaceEXT(org.lwjgl.vulkan.VkInstance instance, long pCreateInfo, long pAllocator, long pSurface)
      Unsafe version of: CreateDirectFBSurfaceEXT
    • vkCreateDirectFBSurfaceEXT

      public static int vkCreateDirectFBSurfaceEXT(org.lwjgl.vulkan.VkInstance instance, VkDirectFBSurfaceCreateInfoEXT pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, LongBuffer pSurface)
      Create a VkSurfaceKHR object for a DirectFB surface.
      C Specification

      To create a VkSurfaceKHR object for a DirectFB surface, call:

      
       VkResult vkCreateDirectFBSurfaceEXT(
           VkInstance                                  instance,
           const VkDirectFBSurfaceCreateInfoEXT*       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 VkDirectFBSurfaceCreateInfoEXT 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, VkDirectFBSurfaceCreateInfoEXT

      Parameters:
      instance - the instance to associate the surface with.
      pCreateInfo - a pointer to a VkDirectFBSurfaceCreateInfoEXT 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 - a pointer to a VkSurfaceKHR handle in which the created surface object is returned.
    • vkGetPhysicalDeviceDirectFBPresentationSupportEXT

      public static boolean vkGetPhysicalDeviceDirectFBPresentationSupportEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, int queueFamilyIndex, long dfb)
      Query physical device for presentation with DirectFB.
      C Specification

      To determine whether a queue family of a physical device supports presentation with DirectFB library, call:

      
       VkBool32 vkGetPhysicalDeviceDirectFBPresentationSupportEXT(
           VkPhysicalDevice                            physicalDevice,
           uint32_t                                    queueFamilyIndex,
           IDirectFB*                                  dfb);
      Description

      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
      • dfb must be a valid pointer to an IDirectFB value
      Parameters:
      physicalDevice - the physical device.
      queueFamilyIndex - the queue family index.
      dfb - a pointer to the IDirectFB main interface of DirectFB.
    • vkCreateDirectFBSurfaceEXT

      public static int vkCreateDirectFBSurfaceEXT(org.lwjgl.vulkan.VkInstance instance, VkDirectFBSurfaceCreateInfoEXT pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pSurface)
      Array version of: CreateDirectFBSurfaceEXT