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;
pub struct NativeBufferUsageOHOS {
s_type: vk::StructureType,
p_next: *mut c_void,
ohos_native_buffer_usage: u64,
}
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.OHOSNativeBufferUsagereturns the Open Harmony OS buffer usage flags.
Valid Usage (Implicit)
VUID-VkNativeBufferUsageOHOS-sType-sType
sType must be VK_STRUCTURE_TYPE_NATIVE_BUFFER_USAGE_OHOS