using System.Runtime.Versioning; namespace Brutal.VulkanApi.Metal { /// /// VkImportMetalIOSurfaceInfoEXT - Structure that identifies a VkImage object and corresponding Metal IOSurfaceRef object to use. /// /// /// /// To import, or create, a Metal basetype:IOSurfaceRef object to underlie a /// VkImage object, include a VkImportMetalIOSurfaceInfoEXT /// structure in the pNext chain of the VkImageCreateInfo structure /// in a vkCreateImage command. /// /// /// The VkImportMetalIOSurfaceInfoEXT structure is defined as: /// /// /// // Provided by VK_EXT_metal_objects /// typedef struct VkImportMetalIOSurfaceInfoEXT { /// VkStructureType sType; /// const void* pNext; /// IOSurfaceRef ioSurface; /// } VkImportMetalIOSurfaceInfoEXT; /// /// [StructLayout(LayoutKind.Explicit, Size = 24)] [SupportedOSPlatform("macos"), SupportedOSPlatform("ios")] public unsafe partial struct VkImportMetalIOSurfaceInfoEXT() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ImportMetalIoSurfaceInfoEXT; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// IoSurface is VK_NULL_HANDLE or the Metal basetype:IOSurfaceRef object that is to underlie the VkImage. /// [FieldOffset(16)] public nint IoSurface; } }