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 |
|---|---|
| public static final String | VK_EXT_HEADLESS_SURFACE_EXTENSION_NAME
The extension name. |
| public static final int | VK_EXT_HEADLESS_SURFACE_SPEC_VERSION
The extension specification version. |
| public static final int | VK_STRUCTURE_TYPE_HEADLESS_SURFACE_CREATE_INFO_EXT
Extends |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | nvkCreateHeadlessSurfaceEXT(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface)
Unsafe version of: |
| public static int | vkCreateHeadlessSurfaceEXT(VkInstance
the instance to associate the surface with. instance, VkHeadlessSurfaceCreateInfoEXT a pointer to a pCreateInfo, VkAllocationCallbacks VkHeadlessSurfaceCreateInfoEXT structure containing parameters affecting the creation of the surface object.the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation). pAllocator, LongBuffer a pointer to a pSurface)VkSurfaceKHR handle in which the created surface object is returned.Create a headless |
| public static int | vkCreateHeadlessSurfaceEXT(VkInstance instance, VkHeadlessSurfaceCreateInfoEXT pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface)
Array version of: |
| VK_EXT_HEADLESS_SURFACE_EXTENSION_NAME | back to summary |
|---|---|
| public static final String VK_EXT_HEADLESS_SURFACE_EXTENSION_NAME The extension name. | |
| VK_EXT_HEADLESS_SURFACE_SPEC_VERSION | back to summary |
|---|---|
| public static final int VK_EXT_HEADLESS_SURFACE_SPEC_VERSION The extension specification version. | |
| VK_STRUCTURE_TYPE_HEADLESS_SURFACE_CREATE_INFO_EXT | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_HEADLESS_SURFACE_CREATE_INFO_EXT Extends | |
| EXTHeadlessSurface | back to summary |
|---|---|
| protected EXTHeadlessSurface() | |
| nvkCreateHeadlessSurfaceEXT | back to summary |
|---|---|
| public static int nvkCreateHeadlessSurfaceEXT(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface) Unsafe version of: | |
| vkCreateHeadlessSurfaceEXT | back to summary |
|---|---|
| public static int vkCreateHeadlessSurfaceEXT(VkInstance instance, VkHeadlessSurfaceCreateInfoEXT pCreateInfo, VkAllocationCallbacks pAllocator, LongBuffer pSurface) Create a headless C SpecificationTo create a headless
Valid Usage (Implicit)
Return Codes
See Also
| |
| vkCreateHeadlessSurfaceEXT | back to summary |
|---|---|
| public static int vkCreateHeadlessSurfaceEXT(VkInstance instance, VkHeadlessSurfaceCreateInfoEXT pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface) Array version of:
| |