using System.Runtime.Versioning; namespace Brutal.VulkanApi.Metal { /// /// VkImportMetalBufferInfoEXT - Structure that identifies a Metal MTLBuffer object to use when creating a VkDeviceMemory object. /// /// /// /// To import a Metal MTLBuffer object to underlie a VkDeviceMemory /// object, include a VkImportMetalBufferInfoEXT structure in the /// pNext chain of the VkMemoryAllocateInfo structure in a /// vkAllocateMemory command. /// /// /// The VkImportMetalBufferInfoEXT structure is defined as: /// /// /// // Provided by VK_EXT_metal_objects /// typedef struct VkImportMetalBufferInfoEXT { /// VkStructureType sType; /// const void* pNext; /// MTLBuffer_id mtlBuffer; /// } VkImportMetalBufferInfoEXT; /// /// [StructLayout(LayoutKind.Explicit, Size = 24)] [SupportedOSPlatform("macos"), SupportedOSPlatform("ios")] public unsafe partial struct VkImportMetalBufferInfoEXT() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ImportMetalBufferInfoEXT; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// MtlBuffer is the Metal `id<MTLBuffer>` object that is to underlie the VkDeviceMemory. /// [FieldOffset(16)] public nint MtlBuffer; } }