Structures

VkNativeBufferFormatPropertiesOHOS

Structure describing the image format properties of an Open Harmony OS native buffer

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:

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;
  • sType is a VkStructureType value identifying this structure.
  • pNext is NULL or a pointer to a structure extending this structure.
  • format is the Vulkan format corresponding to the Open Harmony OS native buffer’s format, or VK_FORMAT_UNDEFINED if there is not an equivalent Vulkan format.
  • externalFormat is an implementation-defined external format identifier for use with VkExternalFormatOHOS.
  • formatFeatures describes the capabilities of this external format when used with an image bound to memory imported from buffer.
  • samplerYcbcrConversionComponents represents a set of VkComponentSwizzle.
  • suggestedYcbcrModel represents the color model.
  • suggestedYcbcrRange represents the numerical value range.
  • suggestedXChromaOffset represents the X chroma offset.
  • suggestedYChromaOffset represents the Y chroma offset.

Valid Usage (Implicit)

VUID-VkNativeBufferFormatPropertiesOHOS-sType-sType

sType must be VK_STRUCTURE_TYPE_NATIVE_BUFFER_FORMAT_PROPERTIES_OHOS