C Specification
The VkSwapchainPresentFenceInfoEXT
structure is defined as:
// Provided by VK_EXT_swapchain_maintenance1
typedef struct VkSwapchainPresentFenceInfoEXT {
VkStructureType sType;
const void* pNext;
uint32_t swapchainCount;
const VkFence* pFences;
} VkSwapchainPresentFenceInfoEXT;
Members
-
sType
is the type of this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
swapchainCount
is the number of swapchains being presented to by this command. -
pFences
is a list of fences withswapchainCount
entries. Each entry must be VK_NULL_HANDLE or the handle of a fence to signal when the relevant operations on the associated swapchain have completed.
Description
The set of queue operations defined by queuing an image for presentation, as well as operations performed by the presentation engine access the payloads of objects associated with the presentation operation. The associated objects include:
-
The swapchain image, its implicitly bound memory, and any other resources bound to that memory.
-
The wait semaphores specified when queuing the image for presentation.
The application can provide a fence that the implementation will signal when all such queue operations have completed and the presentation engine has taken a reference to the payload of any objects it accesses as part of the present operation. For all binary wait semaphores imported by the presentation engine using the equivalent of reference transference, as described in Importing Semaphore Payloads, this fence must not signal until all such semaphore payloads have been reset by the presentation engine.
The application can destroy the wait semaphores associated with a given presentation operation when the associated fence is signaled, and can destroy the swapchain when the fences associated with all past presentation requests have signaled.
Fences associated with presentations to the same swapchain on the same VkQueue must be signaled in the same order as the present operations.
To specify a fence for each swapchain in a present operation, include the
VkSwapchainPresentFenceInfoEXT
structure in the pNext
chain of
the VkPresentInfoKHR structure.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.