HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Modulevulkan-3.27GHC2021

Vulkan.Extensions.VK_KHR_present_id2

Name

VK_KHR_present_id2 - device extension

VK_KHR_present_id2

Name String

VK_KHR_present_id2

Extension Type

Device extension

Registered Extension Number

480

Revision

1

Ratification Status

Ratified

Extension and Version Dependencies

VK_KHR_get_surface_capabilities2

and

VK_KHR_surface

and

VK_KHR_swapchain

Contact
  • Daniel Stone

Extension Proposal

VK_KHR_present_id2

Other Extension Metadata

Last Modified Date

2025-01-06

IP Status

No known IP claims.

Contributors
  • Hans-Kristian Arntzen, Valve

  • James Jones, NVIDIA

  • Daniel Stone, Collabora

  • Derek Foreman, Collabora

  • /contributors to `VK_KHR_present_id`/

Description

This device extension allows an application that uses the VK_KHR_swapchain extension to provide an identifier for present operations on a swapchain. An application can use this to reference specific present operations in other extensions.

New Structures

New Enum Constants

Issues

None.

Version History

  • Revision 1, 2022-05-10 (Daniel Stone)

    • Repurposed VK_KHR_present_id to be driven by surface capabilities

See Also

No cross-references are available

Document Notes

For more information, see the Vulkan Specification.

This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.

  • 7 types
  • Packagevulkan-3.27
  • Exports16
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceVK_KHR_present_id2.hs

VkPhysicalDevicePresentId2FeaturesKHR - Structure indicating support for present id 2

Members

This structure describes the following feature:

Description

If the PhysicalDevicePresentId2FeaturesKHR structure is included in the pNext chain of the PhysicalDeviceFeatures2 structure passed to getPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported. If the application wishes to use a Device with any features described by PhysicalDevicePresentId2FeaturesKHR, it must add an instance of the structure, with the desired feature members set to TRUE, to the pNext chain of DeviceCreateInfo when creating the Device.

Structure Chaining

Extends the structures

See Also

VK_KHR_present_id2, Bool32, StructureType

Constructors

Instances6Eq, Show, Storable, FromCStruct, ToCStruct, Zero
datadata PresentId2KHR
#

VkPresentId2KHR - The list of presentation identifiers

Description

For applications to be able to reference specific presentation events queued by a call to queuePresentKHR, an identifier needs to be associated with them.

When the SurfaceCapabilitiesPresentId2KHR surface capability is present for a surface, applications can include the PresentId2KHR structure in the pNext chain of the PresentInfoKHR structure to associate an identifier with each presentation request. The pPresentIds provides an identifier for the swapchain present at the corresponding index in PresentInfoKHR’s pSwapchains array.

If this presentId is non-zero, then the application can later use this value to refer to that image presentation. A value of zero indicates that this presentation has no associated presentId. A non-zero presentId must be greater than any non-zero presentId passed previously by the application for the same swapchain.

If a non-zero presentId was provided, this may be used with waitForPresent2KHR for the application to synchronize against the presentation engine’s processing of the presentation request.

The ID namespace used by this extension must be shared with other extensions that allow the application to provide a 64-bit monotonically increasing presentation ID, such as the original VK_KHR_present_id.

This is to allow existing extensions that depend on VK_KHR_present_id to use VK_KHR_present_id2 provided IDs without change, as well as to simplify writing future extensions that require application provided presentation IDs.

Valid Usage

Valid Usage (Implicit)

  • If pPresentIds is not NULL, pPresentIds must be a valid pointer to an array of swapchainCount uint64_t values

  • swapchainCount must be greater than 0

Structure Chaining

Extends the structure

See Also

VK_KHR_present_id2, StructureType

Constructors

Instances4Show, FromCStruct, ToCStruct, Zero

VkSurfaceCapabilitiesPresentId2KHR - Structure describing presentation-ID capabilities of a surface

Description

This structure can be included in the pNext chain of SurfaceCapabilities2KHR to determine support for present-wait. If presentId2Supported is FALSE, it indicates that attaching an ID to presentation requests is not possible for this surface.

Applications must not attempt to include PresentId2KHR in the pNext chain of a PresentInfoKHR if presentId2Supported is FALSE.

Structure Chaining

Extends the structure

See Also

VK_KHR_present_id2, Bool32, StructureType

Constructors

Instances6Eq, Show, Storable, FromCStruct, ToCStruct, Zero
newtypenewtype SwapchainCreateFlagBitsKHR
#

VkSwapchainCreateFlagBitsKHR - Bitmask controlling swapchain creation

Description

See Also

VK_KHR_swapchain, SwapchainCreateFlagsKHR

Instances8Eq, Ord, Read, Show, Bits, FiniteBits, …