vkDestroyDescriptorPool
vkDestroyDescriptorPool is a Vulkan API function used to destroy a VkDescriptorPool object. A VkDescriptorPool is a resource that manages descriptor sets, which are collections of VkDescriptorSet objects. These descriptor sets are used to bind resources like textures and buffers to shaders. When a VkDescriptorPool is no longer needed, it should be destroyed to free up associated memory and resources.
The function takes two arguments: a pointer to a VkDevice and the VkDescriptorPool to be destroyed. The
The function returns a VkResult, indicating success or failure. It is good practice to check the return