Top Description Fields Constructors Methods
org.lwjgl.vulkan

public Class EXTSwapchainMaintenance1

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

VK_EXT_swapchain_maintenance1 adds a collection of window system integration features that were intentionally left out or overlooked in the original VK_KHR_swapchain extension.

The new features are as follows:

VK_EXT_swapchain_maintenance1
Name String
VK_EXT_swapchain_maintenance1
Extension Type
Device extension
Registered Extension Number
276
Revision
1
Extension and Version Dependencies
VK_KHR_swapchain and VK_EXT_surface_maintenance1 and VK_KHR_get_physical_device_properties2
Contact
Extension Proposal
VK_EXT_swapchain_maintenance1
Other Extension Metadata
Last Modified Date
2022-10-28
Contributors
  • Jeff Juliano, NVIDIA
  • Shahbaz Youssefi, Google
  • Chris Forbes, Google
  • Ian Elliott, Google
  • Yiwei Zhang, Google
  • Charlie Lao, Google
  • Lina Versace, Google
  • Ralph Potter, Samsung
  • Igor Nazarov, Samsung
  • Hyunchang Kim, Samsung
  • Suenghwan Lee, Samsung
  • Munseong Kang, Samsung
  • Joonyong Park, Samsung
  • Hans-Kristian Arntzen, Valve
  • Lisa Wu, Arm
  • Daniel Stone, Collabora
  • Pan Gao, Huawei

Field Summary

Modifier and TypeField and Description
public static final String
public static final int
VK_EXT_SWAPCHAIN_MAINTENANCE_1_SPEC_VERSION

The extension specification version.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_EXT

Extends VkSwapchainCreateFlagBitsKHR.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
nvkReleaseSwapchainImagesEXT(VkDevice device, long pReleaseInfo)

Unsafe version of: ReleaseSwapchainImagesEXT

public static int
vkReleaseSwapchainImagesEXT(VkDevice
the device associated with VkReleaseSwapchainImagesInfoEXT::swapchain.
device
,
VkReleaseSwapchainImagesInfoEXT
a pointer to a VkReleaseSwapchainImagesInfoEXT structure containing parameters of the release.
pReleaseInfo
)

Release previously acquired but unused images.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

VK_EXT_SWAPCHAIN_MAINTENANCE_1_EXTENSION_NAMEback to summary
public static final String VK_EXT_SWAPCHAIN_MAINTENANCE_1_EXTENSION_NAME

The extension name.

VK_EXT_SWAPCHAIN_MAINTENANCE_1_SPEC_VERSIONback to summary
public static final int VK_EXT_SWAPCHAIN_MAINTENANCE_1_SPEC_VERSION

The extension specification version.

VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SWAPCHAIN_MAINTENANCE_1_FEATURES_EXTback to summary
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SWAPCHAIN_MAINTENANCE_1_FEATURES_EXT

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_RELEASE_SWAPCHAIN_IMAGES_INFO_EXTback to summary
public static final int VK_STRUCTURE_TYPE_RELEASE_SWAPCHAIN_IMAGES_INFO_EXT

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_SWAPCHAIN_PRESENT_FENCE_INFO_EXTback to summary
public static final int VK_STRUCTURE_TYPE_SWAPCHAIN_PRESENT_FENCE_INFO_EXT

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_SWAPCHAIN_PRESENT_MODE_INFO_EXTback to summary
public static final int VK_STRUCTURE_TYPE_SWAPCHAIN_PRESENT_MODE_INFO_EXT

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_SWAPCHAIN_PRESENT_MODES_CREATE_INFO_EXTback to summary
public static final int VK_STRUCTURE_TYPE_SWAPCHAIN_PRESENT_MODES_CREATE_INFO_EXT

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_SWAPCHAIN_PRESENT_SCALING_CREATE_INFO_EXTback to summary
public static final int VK_STRUCTURE_TYPE_SWAPCHAIN_PRESENT_SCALING_CREATE_INFO_EXT

Extends VkStructureType.

Enum values:
VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_EXTback to summary
public static final int VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_EXT

Extends VkSwapchainCreateFlagBitsKHR.

Constructor Detail

EXTSwapchainMaintenance1back to summary
protected EXTSwapchainMaintenance1()

Method Detail

nvkReleaseSwapchainImagesEXTback to summary
public static int nvkReleaseSwapchainImagesEXT(VkDevice device, long pReleaseInfo)

Unsafe version of: ReleaseSwapchainImagesEXT

vkReleaseSwapchainImagesEXTback to summary
public static int vkReleaseSwapchainImagesEXT(VkDevice device, VkReleaseSwapchainImagesInfoEXT pReleaseInfo)

Release previously acquired but unused images.

C Specification

To release images previously acquired through AcquireNextImage2KHR or AcquireNextImageKHR, call:


VkResult vkReleaseSwapchainImagesEXT(
    VkDevice                                    device,
    const VkReleaseSwapchainImagesInfoEXT*      pReleaseInfo);
Description

Only images that are not in use by the device can be released.

Releasing images is a read-only operation that will not affect the content of the released images. Upon reacquiring the image, the image contents and its layout will be the same as they were prior to releasing it. However, if a mechanism other than Vulkan is used to modify the platform window associated with the swapchain, the content of all presentable images in the swapchain becomes undefined.

Note

This functionality is useful during swapchain recreation, where acquired images from the old swapchain can be released instead of presented.

Valid Usage (Implicit)
Return Codes
On success, this command returns
On failure, this command returns
See Also

VkReleaseSwapchainImagesInfoEXT

Parameters
device:VkDevice

the device associated with VkReleaseSwapchainImagesInfoEXT::swapchain.

pReleaseInfo:VkReleaseSwapchainImagesInfoEXT

a pointer to a VkReleaseSwapchainImagesInfoEXT structure containing parameters of the release.

Annotations
@NativeType:VkResult