C Specification
To obtain format properties of an Open Harmony OS native buffer, include a
VkNativeBufferFormatPropertiesOHOS structure in the pNext chain
of the VkNativeBufferPropertiesOHOS structure passed to
vkGetNativeBufferPropertiesOHOS.
The VkNativeBufferFormatPropertiesOHOS structure is defined as:
// Provided by VK_OHOS_external_memory
typedef struct VkNativeBufferFormatPropertiesOHOS {
VkStructureType sType;
void* pNext;
VkFormat format;
uint64_t externalFormat;
VkFormatFeatureFlags formatFeatures;
VkComponentMapping samplerYcbcrConversionComponents;
VkSamplerYcbcrModelConversion suggestedYcbcrModel;
VkSamplerYcbcrRange suggestedYcbcrRange;
VkChromaLocation suggestedXChromaOffset;
VkChromaLocation suggestedYChromaOffset;
} VkNativeBufferFormatPropertiesOHOS;
Members
-
sTypeis a VkStructureType value identifying this structure. -
pNextisNULLor a pointer to a structure extending this structure. -
formatis the Vulkan format corresponding to the Open Harmony OS native buffer’s format, orVK_FORMAT_UNDEFINEDif there is not an equivalent Vulkan format. -
externalFormatis an implementation-defined external format identifier for use with VkExternalFormatOHOS. -
formatFeaturesdescribes the capabilities of this external format when used with an image bound to memory imported frombuffer. -
samplerYcbcrConversionComponentsrepresents a set of VkComponentSwizzle. -
suggestedYcbcrModelrepresents the color model. -
suggestedYcbcrRangerepresents the numerical value range. -
suggestedXChromaOffsetrepresents the X chroma offset. -
suggestedYChromaOffsetrepresents the Y chroma offset.
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.