C Specification
The VkSwapchainPresentModeInfoEXT
structure is defined as:
// Provided by VK_EXT_swapchain_maintenance1
typedef struct VkSwapchainPresentModeInfoEXT {
VkStructureType sType;
const void* pNext;
uint32_t swapchainCount;
const VkPresentModeKHR* pPresentModes;
} VkSwapchainPresentModeInfoEXT;
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. -
pPresentModes
is a list of presentation modes withswapchainCount
entries.
Description
If the pNext
chain of VkPresentInfoKHR includes a
VkSwapchainPresentModeInfoEXT
structure, then that structure defines
the presentation modes used for the current and subsequent presentation
operations.
When the application changes present modes with VkSwapchainPresentModeInfoEXT, images that have already been queued for presentation will continue to be presented according to the previous present mode. The current image being queued for presentation and subsequent images will be presented according to the new present mode. The behavior during the transition between the two modes is defined as follows.
-
Transition from
VK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR
toVK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR
: the presentation engine updates the shared presentable image according to the behavior ofVK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR
. -
Transition from
VK_PRESENT_MODE_SHARED_DEMAND_REFRESH_KHR
toVK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR
: the presentation engine may update the shared presentable image or defer that to its regular refresh cycle, according to the behavior ofVK_PRESENT_MODE_SHARED_CONTINUOUS_REFRESH_KHR
. -
Transition between
VK_PRESENT_MODE_FIFO_KHR
andVK_PRESENT_MODE_FIFO_RELAXED_KHR
: Images continue to be appended to the same FIFO queue, and the behavior with respect to waiting for vertical blanking period will follow the new mode for current and subsequent images. -
Transition from
VK_PRESENT_MODE_IMMEDIATE_KHR
toVK_PRESENT_MODE_FIFO_KHR
orVK_PRESENT_MODE_FIFO_RELAXED_KHR
: As all prior present requests in theVK_PRESENT_MODE_IMMEDIATE_KHR
mode are applied immediately, there are no outstanding present operations in this mode, and current and subsequent images are appended to the FIFO queue and presented according to the new mode. -
Transition from
VK_PRESENT_MODE_MAILBOX_KHR
toVK_PRESENT_MODE_FIFO_KHR
orVK_PRESENT_MODE_FIFO_RELAXED_KHR
: Presentation in both modes require waiting for the next vertical blanking period, withVK_PRESENT_MODE_MAILBOX_KHR
allowing the pending present operation to be replaced by a new one. In this case, the current present operation will replace the pending present operation and is applied according to the new mode. -
Transition from
VK_PRESENT_MODE_FIFO_KHR
orVK_PRESENT_MODE_FIFO_RELAXED_KHR
toVK_PRESENT_MODE_IMMEDIATE_KHR
orVK_PRESENT_MODE_MAILBOX_KHR
: If the FIFO queue is empty, presentation is done according to the behavior of the new mode. If there are present operations in the FIFO queue, once the last present operation is performed based on the respective vertical blanking period, the current and subsequent updates are applied according to the new mode. -
The behavior during transition between any other present modes, if possible, is implementation defined.
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.