Structures
VkAndroidHardwareBufferFormatProperties2ANDROID
Structure describing the image format properties of an Android hardware buffer
The format properties of an Android hardware buffer can be obtained by
including a VkAndroidHardwareBufferFormatProperties2ANDROID structure
in the pNext chain of the
VkAndroidHardwareBufferPropertiesANDROID structure passed to
vkGetAndroidHardwareBufferPropertiesANDROID.
This structure is defined as:
typedef struct VkAndroidHardwareBufferFormatProperties2ANDROID {
VkStructureType sType;
void* pNext;
VkFormat format;
uint64_t externalFormat;
VkFormatFeatureFlags2 formatFeatures;
VkComponentMapping samplerYcbcrConversionComponents;
VkSamplerYcbcrModelConversion suggestedYcbcrModel;
VkSamplerYcbcrRange suggestedYcbcrRange;
VkChromaLocation suggestedXChromaOffset;
VkChromaLocation suggestedYChromaOffset;
} VkAndroidHardwareBufferFormatProperties2ANDROID;
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.formatis the Vulkan format corresponding to the Android hardware buffer’s format, orVK_FORMAT_UNDEFINEDif there is not an equivalent Vulkan format.externalFormatis an implementation-defined external format identifier for use with VkExternalFormatANDROID. It must not be zero.formatFeaturesdescribes the capabilities of this external format when used with an image bound to memory imported frombuffer.samplerYcbcrConversionComponentsis the component swizzle that should be used in VkSamplerYcbcrConversionCreateInfo.suggestedYcbcrModelis a suggested color model to use in the VkSamplerYcbcrConversionCreateInfo.suggestedYcbcrRangeis a suggested numerical value range to use in VkSamplerYcbcrConversionCreateInfo.suggestedXChromaOffsetis a suggested X chroma offset to use in VkSamplerYcbcrConversionCreateInfo.suggestedYChromaOffsetis a suggested Y chroma offset to use in VkSamplerYcbcrConversionCreateInfo.
The bits reported in formatFeatures must include the bits reported in
the corresponding fields of
VkAndroidHardwareBufferFormatPropertiesANDROID::formatFeatures.
Valid Usage (Implicit)
VUID-VkAndroidHardwareBufferFormatProperties2ANDROID-sType-sType
sType must be VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_2_ANDROID