using System.Runtime.Versioning; namespace Brutal.VulkanApi.Metal { /// /// VkImportMemoryMetalHandleInfoEXT - Import Metal memory created on the same physical device /// /// /// /// To import memory from a Metal handle, add a /// VkImportMemoryMetalHandleInfoEXT structure to the pNext chain of /// the VkMemoryAllocateInfo structure. /// /// /// The VkImportMemoryMetalHandleInfoEXT structure is defined as: /// /// /// // Provided by VK_EXT_external_memory_metal /// typedef struct VkImportMemoryMetalHandleInfoEXT { /// VkStructureType sType; /// const void* pNext; /// VkExternalMemoryHandleTypeFlagBits handleType; /// void* handle; /// } VkImportMemoryMetalHandleInfoEXT; /// /// [StructLayout(LayoutKind.Explicit, Size = 32)] [SupportedOSPlatform("macos"), SupportedOSPlatform("ios")] public unsafe partial struct VkImportMemoryMetalHandleInfoEXT() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ImportMemoryMetalHandleInfoEXT; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// HandleType is a VkExternalMemoryHandleTypeFlags value specifying the type of handle or name. /// [FieldOffset(16)] public VkExternalMemoryHandleTypeFlags HandleType; /// /// Handle is `NULL` or the external handle to import. /// [FieldOffset(24)] public void* Handle; } }