public class EXTHeadlessSurface
extends java.lang.Object
VK_EXT_headless_surface extension is an instance extension. It provides a mechanism to create VkSurfaceKHR objects 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.
VK_EXT_headless_surfaceVK_KHR_surface| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VK_EXT_HEADLESS_SURFACE_EXTENSION_NAME
The extension name.
|
static int |
VK_EXT_HEADLESS_SURFACE_SPEC_VERSION
The extension specification version.
|
static int |
VK_STRUCTURE_TYPE_HEADLESS_SURFACE_CREATE_INFO_EXT
Extends
VkStructureType. |
| Modifier and Type | Method and Description |
|---|---|
static int |
nvkCreateHeadlessSurfaceEXT(org.lwjgl.vulkan.VkInstance instance,
long pCreateInfo,
long pAllocator,
long pSurface)
Unsafe version of:
CreateHeadlessSurfaceEXT |
static int |
vkCreateHeadlessSurfaceEXT(org.lwjgl.vulkan.VkInstance instance,
VkHeadlessSurfaceCreateInfoEXT pCreateInfo,
VkAllocationCallbacks pAllocator,
long[] pSurface)
Array version of:
CreateHeadlessSurfaceEXT |
static int |
vkCreateHeadlessSurfaceEXT(org.lwjgl.vulkan.VkInstance instance,
VkHeadlessSurfaceCreateInfoEXT pCreateInfo,
VkAllocationCallbacks pAllocator,
java.nio.LongBuffer pSurface)
Create a headless
VkSurfaceKHR object. |
public static final int VK_EXT_HEADLESS_SURFACE_SPEC_VERSION
public static final java.lang.String VK_EXT_HEADLESS_SURFACE_EXTENSION_NAME
public static final int VK_STRUCTURE_TYPE_HEADLESS_SURFACE_CREATE_INFO_EXT
VkStructureType.public static int nvkCreateHeadlessSurfaceEXT(org.lwjgl.vulkan.VkInstance instance,
long pCreateInfo,
long pAllocator,
long pSurface)
CreateHeadlessSurfaceEXTpublic static int vkCreateHeadlessSurfaceEXT(org.lwjgl.vulkan.VkInstance instance,
VkHeadlessSurfaceCreateInfoEXT pCreateInfo,
@Nullable
VkAllocationCallbacks pAllocator,
java.nio.LongBuffer pSurface)
VkSurfaceKHR object.
To create a headless VkSurfaceKHR object, call:
VkResult vkCreateHeadlessSurfaceEXT(
VkInstance instance,
const VkHeadlessSurfaceCreateInfoEXT* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkSurfaceKHR* pSurface);
instance must be a valid VkInstance handlepCreateInfo must be a valid pointer to a valid VkHeadlessSurfaceCreateInfoEXT structurepAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structurepSurface must be a valid pointer to a VkSurfaceKHR handleinstance - the instance to associate the surface with.pCreateInfo - a pointer to a VkHeadlessSurfaceCreateInfoEXT 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.public static int vkCreateHeadlessSurfaceEXT(org.lwjgl.vulkan.VkInstance instance,
VkHeadlessSurfaceCreateInfoEXT pCreateInfo,
@Nullable
VkAllocationCallbacks pAllocator,
long[] pSurface)
CreateHeadlessSurfaceEXTCopyright LWJGL. All Rights Reserved. License terms.