C Specification

The VkSwapchainPresentModeInfoKHR structure is defined as:

// Provided by VK_KHR_swapchain_maintenance1
typedef struct VkSwapchainPresentModeInfoKHR {
    VkStructureType            sType;
    const void*                pNext;
    uint32_t                   swapchainCount;
    const VkPresentModeKHR*    pPresentModes;
} VkSwapchainPresentModeInfoKHR;
// Provided by VK_EXT_swapchain_maintenance1
// Equivalent to VkSwapchainPresentModeInfoKHR
typedef VkSwapchainPresentModeInfoKHR VkSwapchainPresentModeInfoEXT;

Members

  • sType is a VkStructureType value identifying this structure.

  • pNext is NULL 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 with swapchainCount entries.

Description

If the pNext chain of VkPresentInfoKHR includes a VkSwapchainPresentModeInfoKHR structure, then that structure defines the presentation modes used for the current and subsequent presentation operations.

When the application changes present modes with VkSwapchainPresentModeInfoKHR, 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.

Valid Usage
  • VUID-VkSwapchainPresentModeInfoKHR-swapchainCount-07760
    swapchainCount must be equal to VkPresentInfoKHR::swapchainCount

  • VUID-VkSwapchainPresentModeInfoKHR-pPresentModes-07761
    Each entry in pPresentModes must be a presentation mode specified in VkSwapchainPresentModesCreateInfoKHR::pPresentModes when creating the entry’s corresponding swapchain

Valid Usage (Implicit)
  • VUID-VkSwapchainPresentModeInfoKHR-sType-sType
    sType must be VK_STRUCTURE_TYPE_SWAPCHAIN_PRESENT_MODE_INFO_KHR

  • VUID-VkSwapchainPresentModeInfoKHR-pPresentModes-parameter
    pPresentModes must be a valid pointer to an array of swapchainCount valid VkPresentModeKHR values

  • VUID-VkSwapchainPresentModeInfoKHR-swapchainCount-arraylength
    swapchainCount must be greater than 0

See Also

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.

Copyright 2014-2026 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0