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
-
sType
is a VkStructureType value identifying this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
image
is VK_NULL_HANDLE or a VkImage. -
imageView
is VK_NULL_HANDLE or a VkImageView. -
bufferView
is VK_NULL_HANDLE or a VkBufferView. -
plane
indicates the plane of a multi-planar VkImage or VkImageView. -
mtlTexture
is the Metalid<MTLTexture>
object underlying the VkImage, VkImageView, or VkBufferView object inimage
,imageView
, orbufferView
, respectively, at the plane indicated inaspectMask
. The implementation will return theMTLTexture
in this member, or it will returnNULL
if noMTLTexture
could 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.