How it works...
Drivers may create more images than were requested in the swapchain's creation parameters. There, we just defined the minimum required number but Vulkan implementations are allowed to create more.
We need to know the total number of created images to be able to acquire their handles. In Vulkan, when we want to render into an image, we need to know its handle. It is required to create an image view that wraps the image and is used during framebuffer creation. A framebuffer, as in OpenGL, specifies a set of images that are used during the rendering process (mostly that we render into them).
But this is not the only case in which we need to know what images were created along with a swapchain. It's been said that when an application ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access