Structures
VkExportMemoryAllocateInfo
Specify exportable handle types for a device memory object
When allocating memory whose payload may be exported to another process or
Vulkan instance, add a VkExportMemoryAllocateInfo structure to the
pNext chain of the VkMemoryAllocateInfo structure, specifying
the handle types that may be exported.
The VkExportMemoryAllocateInfo structure is defined as:
typedef struct VkExportMemoryAllocateInfo {
VkStructureType sType;
const void* pNext;
VkExternalMemoryHandleTypeFlags handleTypes;
} VkExportMemoryAllocateInfo;
pub struct ExportMemoryAllocateInfo {
s_type: vk::StructureType,
p_next: *const c_void,
handle_types: vk::ExternalMemoryHandleTypeFlags,
}
typedef VkExportMemoryAllocateInfo VkExportMemoryAllocateInfoKHR;
type ExportMemoryAllocateInfoKHR = vk::ExportMemoryAllocateInfo;
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.handleTypesis zero or a bitmask of VkExternalMemoryHandleTypeFlagBits specifying one or more memory handle types the application can export from the resulting allocation. The application can request multiple handle types for the same allocation.
Valid Usage
VUID-VkExportMemoryAllocateInfo-handleTypes-09860
The bits in handleTypes must be supported and compatible, as reported by
VkExternalTensorPropertiesARM, VkExternalImageFormatProperties, or VkExternalBufferProperties
Valid Usage (Implicit)
VUID-VkExportMemoryAllocateInfo-sType-sType
sType must be VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO
VUID-VkExportMemoryAllocateInfo-handleTypes-parameter
handleTypes must be a valid combination of VkExternalMemoryHandleTypeFlagBits values