using System.Runtime.Versioning; namespace Brutal.VulkanApi.Metal { /// /// VkImportMetalTextureInfoEXT - Structure that identifies Metal MTLTexture objects to use when creating a VkImage. /// /// /// /// 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; /// /// [StructLayout(LayoutKind.Explicit, Size = 32)] [SupportedOSPlatform("macos"), SupportedOSPlatform("ios")] public unsafe partial struct VkImportMetalTextureInfoEXT() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ImportMetalTextureInfoEXT; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Plane specifies the plane of the VkImage that the `id<MTLTexture>` object should be attached to. /// [FieldOffset(16)] public VkImageAspectFlags Plane; /// /// MtlTexture is a the Metal `id<MTLTexture>` object that is to underlie the VkImage plane. /// [FieldOffset(24)] public nint MtlTexture; } }