Function Prototype

vkGetNativeBufferPropertiesOHOS

Obtain the properties of an OH_NativeBuffer Object

To determine the memory parameters to use when importing an Open Harmony OS native buffer:

VkResult vkGetNativeBufferPropertiesOHOS(
    VkDevice device,
    const struct OH_NativeBuffer* buffer,
    VkNativeBufferPropertiesOHOS* pProperties);
  • device is the logical device that will be importing buffer.
  • buffer is the OH_NativeBuffer object specifies the buffer for which its properties are to be queried.
  • pProperties is a pointer to a VkNativeBufferPropertiesOHOS structure in which the properties of buffer are returned.

Valid Usage (Implicit)