Structures
VkMemoryGetAndroidHardwareBufferInfoANDROID
Structure describing an Android hardware buffer memory export operation
The VkMemoryGetAndroidHardwareBufferInfoANDROID
structure is defined
as:
typedef struct VkMemoryGetAndroidHardwareBufferInfoANDROID {
VkStructureType sType;
const void* pNext;
VkDeviceMemory memory;
} VkMemoryGetAndroidHardwareBufferInfoANDROID;
sType
is a VkStructureType value identifying this structure.pNext
isNULL
or a pointer to a structure extending this structure.memory
is the memory object from which the Android hardware buffer will be exported.
Valid Usage
VUID-VkMemoryGetAndroidHardwareBufferInfoANDROID-handleTypes-01882
VK_EXTERNAL_MEMORY_HANDLE_TYPE_ANDROID_HARDWARE_BUFFER_BIT_ANDROID
must have been included in
VkExportMemoryAllocateInfo::handleTypes
when memory
was created
VUID-VkMemoryGetAndroidHardwareBufferInfoANDROID-pNext-01883
If the pNext
chain of the VkMemoryAllocateInfo used to
allocate memory
included a VkMemoryDedicatedAllocateInfo
with non-NULL
image
member, then that image
must already
be bound to memory
Valid Usage (Implicit)
VUID-VkMemoryGetAndroidHardwareBufferInfoANDROID-sType-sType
sType
must be VK_STRUCTURE_TYPE_MEMORY_GET_ANDROID_HARDWARE_BUFFER_INFO_ANDROID
VUID-VkMemoryGetAndroidHardwareBufferInfoANDROID-pNext-pNext
pNext
must be NULL
VUID-VkMemoryGetAndroidHardwareBufferInfoANDROID-memory-parameter
memory
must be a valid VkDeviceMemory handle