VkNativeBufferUsageOHOS(3)

Name

VkNativeBufferUsageOHOS - The usage list of the OH_NativeBuffer object

C Specification

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:

// Provided by VK_OHOS_external_memory
typedef struct VkNativeBufferUsageOHOS {
    VkStructureType    sType;
    void*              pNext;
    uint64_t           OHOSNativeBufferUsage;
} VkNativeBufferUsageOHOS;

Members

  • 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.

Description

Valid Usage (Implicit)
  • VUID-VkNativeBufferUsageOHOS-sType-sType
    sType must be VK_STRUCTURE_TYPE_NATIVE_BUFFER_USAGE_OHOS

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.