C Specification
To free allocated descriptor sets, call:
// Provided by VK_VERSION_1_0
VkResult vkFreeDescriptorSets(
VkDevice device,
VkDescriptorPool descriptorPool,
uint32_t descriptorSetCount,
const VkDescriptorSet* pDescriptorSets);
Parameters
-
device
is the logical device that owns the descriptor pool. -
descriptorPool
is the descriptor pool from which the descriptor sets were allocated. -
descriptorSetCount
is the number of elements in thepDescriptorSets
array. -
pDescriptorSets
is a pointer to an array of handles to VkDescriptorSet objects.
Description
After calling vkFreeDescriptorSets
, all descriptor sets in
pDescriptorSets
are invalid.
If recycleDescriptorSetMemory is
VK_FALSE
, then freeing a descriptor set does not make the pool memory
it used available to be reallocated until the descriptor pool is reset.
If recycleDescriptorSetMemory is
VK_TRUE
, then the memory is available to be reallocated immediately
after freeing the descriptor set.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.