Structures

VkNativeBufferUsageOHOS

The usage list of the OH_NativeBuffer object

To obtain optimal Open Harmony OS native buffer usage flags for specific image creation parameters, add a VkNativeBufferUsageOHOS structure to the pNext chain of a VkImageFormatProperties2 structure passed to vkGetPhysicalDeviceImageFormatProperties2.

The VkNativeBufferUsageOHOS structure is defined as:

typedef struct VkNativeBufferUsageOHOS {
    VkStructureType sType;
    void* pNext;
    uint64_t OHOSNativeBufferUsage;
} VkNativeBufferUsageOHOS;
  • sType is a VkStructureType value identifying this structure.
  • pNext is NULL or a pointer to a structure extending this structure.
  • OHOSNativeBufferUsage returns the Open Harmony OS buffer usage flags.

Valid Usage (Implicit)

VUID-VkNativeBufferUsageOHOS-sType-sType

sType must be VK_STRUCTURE_TYPE_NATIVE_BUFFER_USAGE_OHOS