Structures

VkExternalFormatOHOS

Structure containing an Open Harmony OS hardware buffer external format

The VkExternalFormatOHOS structure is defined as:

typedef struct VkExternalFormatOHOS {
    VkStructureType sType;
    void* pNext;
    uint64_t externalFormat;
} VkExternalFormatOHOS;
  • sType is a VkStructureType value identifying this structure.
  • pNext is NULL or a pointer to a structure extending this structure.
  • externalFormat is an implementation-defined identifier for the external format.

To obtain additional format that are not provided by VkFormat for an Open Harmony OS hardware buffer, this structure should be included in the pNext chain of another structure. The return value of externalFormat indicates whether an additional format exists. If zero is returned, then no external format is used and other format information should be used for implementations, and this is also true if this structure is not present.

Valid Usage (Implicit)

VUID-VkExternalFormatOHOS-sType-sType

sType must be VK_STRUCTURE_TYPE_EXTERNAL_FORMAT_OHOS