Structures
VkImportMetalBufferInfoEXT
Structure that identifies a Metal MTLBuffer object to use when creating a VkDeviceMemory object.
To import a Metal MTLBuffer object to underlie a VkDeviceMemory
object, include a VkImportMetalBufferInfoEXT structure in the
pNext chain of the VkMemoryAllocateInfo structure in a
vkAllocateMemory command.
The VkImportMetalBufferInfoEXT structure is defined as:
typedef struct VkImportMetalBufferInfoEXT {
VkStructureType sType;
const void* pNext;
MTLBuffer_id mtlBuffer;
} VkImportMetalBufferInfoEXT;
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.mtlBufferis the Metalid<MTLBuffer>object that is to underlie the VkDeviceMemory.
The application must ensure that the configuration of the id<MTLBuffer>
object is compatible with the configuration of the VkDeviceMemory.
Failure to do so results in undefined: behavior.
Valid Usage (Implicit)
VUID-VkImportMetalBufferInfoEXT-sType-sType
sType must be VK_STRUCTURE_TYPE_IMPORT_METAL_BUFFER_INFO_EXT