Function Prototype

vkGetAndroidHardwareBufferPropertiesANDROID

Get Properties of External Memory Android Hardware Buffers

To determine the memory parameters to use when importing an Android hardware buffer, call:

VkResult vkGetAndroidHardwareBufferPropertiesANDROID(
    VkDevice device,
    const struct AHardwareBuffer* buffer,
    VkAndroidHardwareBufferPropertiesANDROID* pProperties);
  • device is the logical device that will be importing buffer.
  • buffer is the Android hardware buffer which will be imported.
  • pProperties is a pointer to a VkAndroidHardwareBufferPropertiesANDROID structure in which the properties of buffer are returned.

Valid Usage

VUID-vkGetAndroidHardwareBufferPropertiesANDROID-buffer-01884

buffer must be a valid Android hardware buffer object with at least one of the AHARDWAREBUFFER_USAGE_GPU_* flags in its AHardwareBuffer_Desc::usage