vkResetDescriptorPool
The vkResetDescriptorPool function in Vulkan is used to reset one or more descriptor pools. A descriptor pool is a Vulkan object that allocates memory for descriptor sets. Descriptor sets are collections of descriptors, which are handles to resources like textures and uniform buffers. When a descriptor pool is reset, all descriptor sets previously allocated from it become invalid and must be reallocated. This operation is useful for situations where descriptor sets are no longer needed and the memory they occupy can be reclaimed. It's important to note that resetting a pool does not deallocate the pool itself, only the descriptor sets within it. The function takes a VkDevice handle and a VkDescriptorPool handle as parameters. The VkDescriptorPool handle specifies which pool to reset. The function returns a VkResult indicating success or failure.