Function Prototype

vkGetMemoryNativeBufferOHOS

Obtain an OH_NativeBuffer object

To obtain an OH_NativeBuffer object, call:

VkResult vkGetMemoryNativeBufferOHOS(
    VkDevice device,
    const VkMemoryGetNativeBufferInfoOHOS* pInfo,
    struct OH_NativeBuffer** pBuffer);
  • device is a valid Vulkan device object.
  • pInfo is a pointer pointing to a VkMemoryGetNativeBufferInfoOHOS structure.
  • pBuffer is a pointer to an OH_NativeBuffer object.

Valid Usage (Implicit)

VUID-vkGetMemoryNativeBufferOHOS-pBuffer-parameter

pBuffer must be a valid pointer to a valid pointer to an OH_NativeBuffer value