Class EXTHeadlessSurface
- java.lang.Object
-
- org.lwjgl.vulkan.EXTHeadlessSurface
-
public class EXTHeadlessSurface extends java.lang.ObjectTheVK_EXT_headless_surfaceextension is an instance extension. It provides a mechanism to createVkSurfaceKHRobjects independently of any window system or display device. The presentation operation for a swapchain created from a headless surface is by default a no-op, resulting in no externally-visible result.Because there is no real presentation target, future extensions can layer on top of the headless surface to introduce arbitrary or customisable sets of restrictions or features. These could include features like saving to a file or restrictions to emulate a particular presentation target.
This functionality is expected to be useful for application and driver development because it allows any platform to expose an arbitrary or customisable set of restrictions and features of a presentation engine. This makes it a useful portable test target for applications targeting a wide range of presentation engines where the actual target presentation engines might be scarce, unavailable or otherwise undesirable or inconvenient to use for general Vulkan application development.
- Name String
VK_EXT_headless_surface- Extension Type
- Instance extension
- Registered Extension Number
- 257
- Revision
- 0
- Extension and Version Dependencies
- Requires Vulkan 1.0
- Requires
VK_KHR_surface
- Contact
- Ray Smith raysmith-arm
- Last Modified Date
- 2019-03-21
- IP Status
- No known IP claims.
- Contributors
- Ray Smith, Arm
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVK_EXT_HEADLESS_SURFACE_EXTENSION_NAMEThe extension name.static intVK_EXT_HEADLESS_SURFACE_SPEC_VERSIONThe extension specification version.static intVK_STRUCTURE_TYPE_HEADLESS_SURFACE_CREATE_INFO_EXTExtendsVkStructureType.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnvkCreateHeadlessSurfaceEXT(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface)Unsafe version of:CreateHeadlessSurfaceEXTstatic intvkCreateHeadlessSurfaceEXT(VkInstance instance, VkHeadlessSurfaceCreateInfoEXT pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface)Array version of:CreateHeadlessSurfaceEXTstatic intvkCreateHeadlessSurfaceEXT(VkInstance instance, VkHeadlessSurfaceCreateInfoEXT pCreateInfo, VkAllocationCallbacks pAllocator, java.nio.LongBuffer pSurface)Create a headlessVkSurfaceKHRobject.
-
-
-
Field Detail
-
VK_EXT_HEADLESS_SURFACE_SPEC_VERSION
public static final int VK_EXT_HEADLESS_SURFACE_SPEC_VERSION
The extension specification version.- See Also:
- Constant Field Values
-
VK_EXT_HEADLESS_SURFACE_EXTENSION_NAME
public static final java.lang.String VK_EXT_HEADLESS_SURFACE_EXTENSION_NAME
The extension name.- See Also:
- Constant Field Values
-
VK_STRUCTURE_TYPE_HEADLESS_SURFACE_CREATE_INFO_EXT
public static final int VK_STRUCTURE_TYPE_HEADLESS_SURFACE_CREATE_INFO_EXT
ExtendsVkStructureType.- See Also:
- Constant Field Values
-
-
Method Detail
-
nvkCreateHeadlessSurfaceEXT
public static int nvkCreateHeadlessSurfaceEXT(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface)
Unsafe version of:CreateHeadlessSurfaceEXT
-
vkCreateHeadlessSurfaceEXT
public static int vkCreateHeadlessSurfaceEXT(VkInstance instance, VkHeadlessSurfaceCreateInfoEXT pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, java.nio.LongBuffer pSurface)
Create a headlessVkSurfaceKHRobject.C Specification
To create a headless
VkSurfaceKHRobject, call:VkResult vkCreateHeadlessSurfaceEXT( VkInstance instance, const VkHeadlessSurfaceCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);Valid Usage (Implicit)
instancemust be a validVkInstancehandlepCreateInfomust be a valid pointer to a validVkHeadlessSurfaceCreateInfoEXTstructure- 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 theVkHeadlessSurfaceCreateInfoEXTstructure 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 aVkSurfaceKHRhandle in which the created surface object is returned.
-
vkCreateHeadlessSurfaceEXT
public static int vkCreateHeadlessSurfaceEXT(VkInstance instance, VkHeadlessSurfaceCreateInfoEXT pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pSurface)
Array version of:CreateHeadlessSurfaceEXT
-
-