C Specification
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:
// Provided by VK_EXT_metal_objects
typedef struct VkExportMetalBufferInfoEXT {
VkStructureType sType;
const void* pNext;
VkDeviceMemory memory;
MTLBuffer_id mtlBuffer;
} VkExportMetalBufferInfoEXT;
Members
-
sType
is a VkStructureType value identifying this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
memory
is a VkDeviceMemory. -
mtlBuffer
is the Metalid<MTLBuffer>
object underlying the VkDeviceMemory object inmemory
. The implementation will return theMTLBuffer
in this member, or it will returnNULL
if noMTLBuffer
could be found underlying the VkDeviceMemory object.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.