Structures
VkExportMetalBufferInfoEXT
Structure that identifies a VkDeviceMemory object and corresponding Metal MTLBuffer object
To export the Metal MTLBuffer object underlying a VkDeviceMemory
object, include a VkExportMetalBufferInfoEXT structure in the
pNext chain of the pMetalObjectsInfo parameter of a
vkExportMetalObjectsEXT call.
The VkExportMetalBufferInfoEXT structure is defined as:
typedef struct VkExportMetalBufferInfoEXT {
VkStructureType sType;
const void* pNext;
VkDeviceMemory memory;
MTLBuffer_id mtlBuffer;
} VkExportMetalBufferInfoEXT;
pub struct ExportMetalBufferInfoEXT {
s_type: vk::StructureType,
p_next: *const c_void,
memory: vk::DeviceMemory,
mtl_buffer: MTLBuffer_id,
}
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.memoryis a VkDeviceMemory.mtlBufferis the Metalid<MTLBuffer>object underlying the VkDeviceMemory object inmemory. The implementation will return theMTLBufferin this member, or it will returnNULLif noMTLBuffercould be found underlying the VkDeviceMemory object.
Valid Usage (Implicit)
VUID-VkExportMetalBufferInfoEXT-sType-sType
sType must be VK_STRUCTURE_TYPE_EXPORT_METAL_BUFFER_INFO_EXT
VUID-VkExportMetalBufferInfoEXT-memory-parameter
memory must be a valid VkDeviceMemory handle