using System.Runtime.Versioning; namespace Brutal.VulkanApi.Metal { /// /// VkImportMetalSharedEventInfoEXT - Structure that identifies a VkSemaphore or VkEvent object and corresponding Metal Shared Event object to use. /// /// /// /// To import a Metal `id<MTLSharedEvent>` object to underlie a /// VkSemaphore or VkEvent object, include a /// VkImportMetalSharedEventInfoEXT structure in the pNext chain of /// the VkSemaphoreCreateInfo or VkEventCreateInfo structure in a /// vkCreateSemaphore or vkCreateEvent command, respectively. /// /// /// The VkImportMetalSharedEventInfoEXT structure is defined as: /// /// /// // Provided by VK_EXT_metal_objects /// typedef struct VkImportMetalSharedEventInfoEXT { /// VkStructureType sType; /// const void* pNext; /// MTLSharedEvent_id mtlSharedEvent; /// } VkImportMetalSharedEventInfoEXT; /// /// [StructLayout(LayoutKind.Explicit, Size = 24)] [SupportedOSPlatform("macos"), SupportedOSPlatform("ios")] public unsafe partial struct VkImportMetalSharedEventInfoEXT() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ImportMetalSharedEventInfoEXT; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// MtlSharedEvent is the Metal `id<MTLSharedEvent>` object that is to underlie the VkSemaphore or VkEvent. /// [FieldOffset(16)] public nint MtlSharedEvent; } }