When the swapchain object is created, it may be very useful to acquire the number and handles of all images that were created along with the swapchain.
Getting handles of swapchain images
How to do it...
- Take the handle of a created logical device object. Store it in a variable of type VkDevice named logical_device.
- Assign the handle of a created swapchain to a variable of type VkSwapchainKHR named swapchain.
- Create a variable of type uint32_t named images_count.
- Call vkGetSwapchainImagesKHR(logical_device, swapchain, &images_count, nullptr) for which provide the handle to the created logical device in the first parameter, the handle of the swapchain in the second, and a pointer to the images_count variable in the third parameter. Provide a nullptr value in...