Structures
VkDescriptorPoolSize
Structure specifying descriptor pool size
The VkDescriptorPoolSize structure is defined as:
typedef struct VkDescriptorPoolSize {
VkDescriptorType type;
uint32_t descriptorCount;
} VkDescriptorPoolSize;
pub struct DescriptorPoolSize {
type: vk::DescriptorType,
descriptor_count: u32,
}
typeis the type of descriptor.descriptorCountis the number of descriptors of that type to allocate. IftypeisVK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCKthendescriptorCountis the number of bytes to allocate for descriptors of this type.
When creating a descriptor pool that will contain descriptors for combined
image samplers with Y′CBCR conversion, an
application needs to account for non-trivial descriptor consumption when
choosing the
descriptorCount value, as indicated by
VkSamplerYcbcrConversionImageFormatProperties::combinedImageSamplerDescriptorCount.For simplicity, the application can use the
VkPhysicalDeviceMaintenance6Properties::maxCombinedImageSamplerDescriptorCount
property to conservatively size the descriptorCount value instead of
querying combinedImageSamplerDescriptorCount for each format.Applications must use maxCombinedImageSamplerDescriptorCount to size
the descriptorCount value for image samplers with an
Android external
format as it is not possible to query
combinedImageSamplerDescriptorCount for those formats.Valid Usage
VUID-VkDescriptorPoolSize-descriptorCount-00302
descriptorCount must be greater than 0
VUID-VkDescriptorPoolSize-type-02218
If type is VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK then
descriptorCount must be a multiple of 4
Valid Usage (Implicit)
VUID-VkDescriptorPoolSize-type-parameter
type must be a valid VkDescriptorType value
Parent
VK_VERSION_1_0Type
Structures