C Specification
To import one or more existing Metal MTLTexture
objects to underlie a
VkImage object, include one or more VkImportMetalTextureInfoEXT
structures in the pNext
chain of the VkImageCreateInfo structure
in a vkCreateImage command.
The VkImportMetalTextureInfoEXT
structure is defined as:
// Provided by VK_EXT_metal_objects
typedef struct VkImportMetalTextureInfoEXT {
VkStructureType sType;
const void* pNext;
VkImageAspectFlagBits plane;
MTLTexture_id mtlTexture;
} VkImportMetalTextureInfoEXT;
Members
-
sType
is a VkStructureType value identifying this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
plane
indicates the plane of the VkImage that theid<MTLTexture>
object should be attached to. -
mtlTexture
is a the Metalid<MTLTexture>
object that is to underlie the VkImage plane.
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.