vulkan-3.14.2: Bindings to the Vulkan graphics API.
Safe HaskellNone
LanguageHaskell2010

Vulkan.Extensions.VK_KHR_present_id

Description

Name

VK_KHR_present_id - device extension

VK_KHR_present_id

Name String
VK_KHR_present_id
Extension Type
Device extension
Registered Extension Number
295
Revision
1
Extension and Version Dependencies
  • Requires Vulkan 1.0
  • Requires VK_KHR_swapchain
Contact

Other Extension Metadata

Last Modified Date
2019-05-15
IP Status
No known IP claims.
Contributors
  • Keith Packard, Valve
  • Ian Elliott, Google
  • Alon Or-bach, Samsung

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, 2019-05-15 (Keith Packard)

    • Initial version

See Also

PhysicalDevicePresentIdFeaturesKHR, PresentIdKHR

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.

Synopsis

Documentation

data PhysicalDevicePresentIdFeaturesKHR Source #

VkPhysicalDevicePresentIdFeaturesKHR - Structure indicating support for present id

Members

This structure describes the following feature:

Description

If the PhysicalDevicePresentIdFeaturesKHR 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. PhysicalDevicePresentIdFeaturesKHR can also be used in the pNext chain of DeviceCreateInfo to selectively enable these features.

Valid Usage (Implicit)

See Also

VK_KHR_present_id, Bool32, StructureType

Constructors

PhysicalDevicePresentIdFeaturesKHR 

Fields

Instances

Instances details
Eq PhysicalDevicePresentIdFeaturesKHR Source # 
Instance details

Defined in Vulkan.Extensions.VK_KHR_present_id

Show PhysicalDevicePresentIdFeaturesKHR Source # 
Instance details

Defined in Vulkan.Extensions.VK_KHR_present_id

Storable PhysicalDevicePresentIdFeaturesKHR Source # 
Instance details

Defined in Vulkan.Extensions.VK_KHR_present_id

FromCStruct PhysicalDevicePresentIdFeaturesKHR Source # 
Instance details

Defined in Vulkan.Extensions.VK_KHR_present_id

ToCStruct PhysicalDevicePresentIdFeaturesKHR Source # 
Instance details

Defined in Vulkan.Extensions.VK_KHR_present_id

Zero PhysicalDevicePresentIdFeaturesKHR Source # 
Instance details

Defined in Vulkan.Extensions.VK_KHR_present_id

data PresentIdKHR Source #

VkPresentIdKHR - 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 presentId feature is enabled, applications can include the PresentIdKHR structure in the pNext chain of the PresentInfoKHR structure to supply identifiers.

Each SwapchainKHR has a presentId associated with it. This value is initially set to zero when the SwapchainKHR is created.

When a PresentIdKHR structure with a non-NULL pPresentIds is included in the pNext chain of a PresentInfoKHR structure, each pSwapchains entry has a presentId associated in the pPresentIds array at the same index as the swapchain in the 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.

There is no requirement for any precise timing relationship between the presentation of the image to the user and the update of the presentId value, but implementations should make this as close as possible to the presentation of the first pixel in the new image to the user.

Valid Usage

  • Each presentIds entry must be greater than any previous presentIds entry passed for the associated pSwapchains entry

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

See Also

VK_KHR_present_id, StructureType

Constructors

PresentIdKHR 

Fields

  • swapchainCount :: Word32

    swapchainCount is the number of swapchains being presented to the queuePresentKHR command.

  • presentIds :: Vector Word64

    pPresentIds is NULL or a pointer to an array of uint64_t with swapchainCount entries. If not NULL, each non-zero value in pPresentIds specifies the present id to be associated with the presentation of the swapchain with the same index in the queuePresentKHR call.

pattern KHR_PRESENT_ID_SPEC_VERSION :: forall a. Integral a => a Source #

type KHR_PRESENT_ID_EXTENSION_NAME = "VK_KHR_present_id" Source #

pattern KHR_PRESENT_ID_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #