vkCreateDescriptorPool
vkCreateDescriptorPool is a Vulkan API function used to create a descriptor pool. A descriptor pool is a collection of descriptor sets. Descriptor sets are used to bind resources like textures and buffers to a shader. When creating a descriptor pool, you specify the maximum number of descriptor sets and the types and maximum counts of descriptors within those sets. This allows the Vulkan driver to pre-allocate memory for descriptors, improving performance by avoiding dynamic allocation during rendering.
The function takes a VkDevice handle, a pointer to a VkDescriptorPoolCreateInfo structure, and a pointer to
Upon successful creation, the function returns VK_SUCCESS and populates the provided VkDescriptorPool handle with a valid