C Specification
To export a Metal MTLTexture object underlying a VkImage,
VkImageView, or VkBufferView object, include a
VkExportMetalTextureInfoEXT structure in the pNext chain of the
pMetalObjectsInfo parameter of a vkExportMetalObjectsEXT call.
The VkExportMetalTextureInfoEXT structure is defined as:
// Provided by VK_EXT_metal_objects
typedef struct VkExportMetalTextureInfoEXT {
    VkStructureType          sType;
    const void*              pNext;
    VkImage                  image;
    VkImageView              imageView;
    VkBufferView             bufferView;
    VkImageAspectFlagBits    plane;
    MTLTexture_id            mtlTexture;
} VkExportMetalTextureInfoEXT;Members
- 
sTypeis a VkStructureType value identifying this structure.
- 
pNextisNULLor a pointer to a structure extending this structure.
- 
imageis VK_NULL_HANDLE or a VkImage.
- 
imageViewis VK_NULL_HANDLE or a VkImageView.
- 
bufferViewis VK_NULL_HANDLE or a VkBufferView.
- 
planespecifies the plane of a multi-planar VkImage or VkImageView.
- 
mtlTextureis the Metalid<MTLTexture>object underlying the VkImage, VkImageView, or VkBufferView object inimage,imageView, orbufferView, respectively, at the plane indicated inaspectMask. The implementation will return theMTLTexturein this member, or it will returnNULLif noMTLTexturecould be found underlying the VkImage, VkImageView, or VkBufferView object, at the plane indicated inaspectMask.
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.