To acquire an available presentable image to use, and retrieve the index of that image, call:
// Provided by VK_VERSION_1_1 with VK_KHR_swapchain, VK_KHR_device_group with VK_KHR_swapchain
const VkAcquireNextImageInfoKHR* pAcquireInfo,
deviceis the device associated with
pAcquireInfois a pointer to a VkAcquireNextImageInfoKHR structure containing parameters of the acquire.
pImageIndexis a pointer to a
uint32_tthat is set to the index of the next image to use.
swapchain has been created with the
VK_SWAPCHAIN_CREATE_DEFERRED_MEMORY_ALLOCATION_BIT_EXT flag, the image
whose index is returned in
pImageIndex will be fully backed by memory
before this call returns to the application.
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.