VkBufferCollectionPropertiesFUCHSIA
The VkBufferCollectionPropertiesFUCHSIA
structure is defined as:
typedef struct VkBufferCollectionPropertiesFUCHSIA {
VkStructureType sType;
void* pNext;
uint32_t memoryTypeBits;
uint32_t bufferCount;
uint32_t createInfoIndex;
uint64_t sysmemPixelFormat;
VkFormatFeatureFlags formatFeatures;
VkSysmemColorSpaceFUCHSIA sysmemColorSpaceIndex;
VkComponentMapping samplerYcbcrConversionComponents;
VkSamplerYcbcrModelConversion suggestedYcbcrModel;
VkSamplerYcbcrRange suggestedYcbcrRange;
VkChromaLocation suggestedXChromaOffset;
VkChromaLocation suggestedYChromaOffset;
} VkBufferCollectionPropertiesFUCHSIA;
sType
is a VkStructureType value identifying this structure.pNext
isNULL
or a pointer to a structure extending this structurememoryTypeBits
is a bitmask containing one bit set for every memory type which the buffer collection can be imported as buffer collectionbufferCount
is the number of buffers in the collectioncreateInfoIndex
as described in Sysmem chosen create infossysmemPixelFormat
is the SysmemPixelFormatType
as defined infuchsia.sysmem/image_formats.fidl
formatFeatures
is a bitmask of VkFormatFeatureFlagBits shared by the buffer collectionsysmemColorSpaceIndex
is a VkSysmemColorSpaceFUCHSIA struct specifying the color spacesamplerYcbcrConversionComponents
is a VkComponentMapping struct specifying the component mappingsuggestedYcbcrModel
is a VkSamplerYcbcrModelConversion value specifying the suggested Y′CBCR modelsuggestedYcbcrRange
is a VkSamplerYcbcrRange value specifying the suggested Y′CBCR rangesuggestedXChromaOffset
is a VkChromaLocation value specifying the suggested X chroma offsetsuggestedYChromaOffset
is a VkChromaLocation value specifying the suggested Y chroma offset
sysmemColorSpace
is only set for image-based buffer collections where
the constraints were specified using VkImageConstraintsInfoFUCHSIA in
a call to vkSetBufferCollectionImageConstraintsFUCHSIA.
For image-based buffer collections, createInfoIndex
will identify both
the VkImageConstraintsInfoFUCHSIA::pImageCreateInfos
element and
the VkImageConstraintsInfoFUCHSIA::pFormatConstraints
element
chosen by Sysmem when vkSetBufferCollectionImageConstraintsFUCHSIA was
called.
The value of sysmemColorSpaceIndex
will be an index to one of the
color spaces provided in the
VkImageFormatConstraintsInfoFUCHSIA::pColorSpaces
array.
The implementation must have formatFeatures
with all bits set that
were set in
VkImageFormatConstraintsInfoFUCHSIA::requiredFormatFeatures
, by
the call to vkSetBufferCollectionImageConstraintsFUCHSIA, at
createInfoIndex
(other bits could be set as well).
Valid Usage (Implicit)
VUID-VkBufferCollectionPropertiesFUCHSIA-sType-sType
sType
must be VK_STRUCTURE_TYPE_BUFFER_COLLECTION_PROPERTIES_FUCHSIA
VUID-VkBufferCollectionPropertiesFUCHSIA-pNext-pNext
pNext
must be NULL