Skip to content

Commit 0daac0d

Browse files
Update VK_KHR_sampler_ycbcr_conversion
Add note about VkPhysicalDeviceMaintenance6Properties::maxCombinedImageSamplerDescriptorCount
1 parent 0c65622 commit 0daac0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapters/extensions/VK_KHR_sampler_ycbcr_conversion.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ All descriptors in a binding use the same maximum `combinedImageSamplerDescripto
147147

148148
For example, consider a descriptor set layout binding with two descriptors and immutable samplers for multi-planar formats that have `VkSamplerYcbcrConversionImageFormatProperties::combinedImageSamplerDescriptorCount` values of `2` and `3` respectively. There are two descriptors in the binding and the maximum `combinedImageSamplerDescriptorCount` is `3`, so descriptor sets with this layout consume `6` descriptors from the descriptor pool. To create a descriptor pool that allows allocating `4` descriptor sets with this layout, `descriptorCount` must be at least `24`.
149149

150-
Currently, link:https://github.com/KhronosGroup/Vulkan-Docs/issues/2139[there is no way] to tell what the largest `combinedImageSamplerDescriptorCount` can be. In practice, this value will be `3`, but can be `4` when using some external formats with Alpha components.
150+
If you have the `VK_KHR_maintenance6` extension enabled, you can use the `VkPhysicalDeviceMaintenance6Properties::maxCombinedImageSamplerDescriptorCount` value to know the max value. In practice, this value will be `3`, but could be `4` for some device that might have to handle external formats with Alpha components.
151151

152152
Some pseudo code how to query for the `combinedImageSamplerDescriptorCount`:
153153

0 commit comments

Comments
 (0)