C Specification
To export the Metal IOSurfaceRef object underlying a VkImage
object, include a VkExportMetalIOSurfaceInfoEXT structure in the
pNext chain of the pMetalObjectsInfo parameter of a
vkExportMetalObjectsEXT call.
The VkExportMetalIOSurfaceInfoEXT structure is defined as:
// Provided by VK_EXT_metal_objects
typedef struct VkExportMetalIOSurfaceInfoEXT {
VkStructureType sType;
const void* pNext;
VkImage image;
IOSurfaceRef ioSurface;
} VkExportMetalIOSurfaceInfoEXT;
Members
-
sTypeis a VkStructureType value identifying this structure. -
pNextisNULLor a pointer to a structure extending this structure. -
imageis a VkImage. -
ioSurfaceis the Metal IOSurfaceRef object underlying the VkImage object inimage. The implementation will return the IOSurfaceRef in this member, or it will returnNULLif no IOSurfaceRef could be found underlying the VkImage 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.