To acquire an available presentable image to use, and retrieve the index of that image, call:
VkResult vkAcquireNextImage2KHR( VkDevice device, const VkAcquireNextImageInfoKHR* pAcquireInfo, uint32_t* pImageIndex);
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.
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 (c) 2014-2020 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.