We have created a descriptor pool and allocated descriptor sets from it. We know their internal structure thanks to created layouts. Now we want to provide specific resources (samplers, image views, buffers, or buffer views) that should be later bound to the pipeline through descriptor sets. Defining resources that should be used is done through a process of updating descriptor sets.
Updating descriptor sets
Getting ready
Updating descriptor sets requires us to provide a considerable amount of data for each descriptor involved in the process. What's more, the provided data depends on the type of descriptor. To simplify the process and lower the number of parameters that need to be specified, and also to improve error checking, custom structures are introduced...