Unifying descriptor set creation routines
Before we can complete our material system implementation using the Vulkan API, we must reconsider the descriptor set creation routines in all the previous recipes. The reason we didn't implement the most generic routines right away is simple: as with all the examples, we decided to follow the "natural" evolution of the code instead of provided all the solutions at the beginning. The routines presented in this recipe complete the resource management system for this book.
Getting ready
The source code for this recipe can be found in the shared/vkFramework/VulkanResources.h
and shared/vkFramework/VulkanResources.cpp
files.
How to do it...
The Managing Vulkan resources recipe from this chapter introduced the VulkanResources
class, which contains all our allocated Vulkan objects. The descriptor sets and descriptor pools are also allocated by the methods of this class. Here is a list of requirements for descriptor set...