using System.Runtime.Versioning; namespace Brutal.VulkanApi.Metal { /// /// VkExportMetalSharedEventInfoEXT - Structure that identifies a VkSemaphore or VkEvent object and corresponding Metal MTLSharedEvent object /// /// /// /// To export the Metal MTLSharedEvent object underlying a /// VkSemaphore or VkEvent object, include a /// VkExportMetalSharedEventInfoEXT structure in the pNext chain of /// the pMetalObjectsInfo parameter of a vkExportMetalObjectsEXT /// call. /// /// /// The VkExportMetalSharedEventInfoEXT structure is defined as: /// /// /// // Provided by VK_EXT_metal_objects /// typedef struct VkExportMetalSharedEventInfoEXT { /// VkStructureType sType; /// const void* pNext; /// VkSemaphore semaphore; /// VkEvent event; /// MTLSharedEvent_id mtlSharedEvent; /// } VkExportMetalSharedEventInfoEXT; /// /// [StructLayout(LayoutKind.Explicit, Size = 40)] [SupportedOSPlatform("macos"), SupportedOSPlatform("ios")] public unsafe partial struct VkExportMetalSharedEventInfoEXT() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ExportMetalSharedEventInfoEXT; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Semaphore is VK_NULL_HANDLE or a VkSemaphore. /// [FieldOffset(16)] public VkSemaphore Semaphore; /// /// Event is VK_NULL_HANDLE or a VkEvent. /// [FieldOffset(24)] public VkEvent Event; /// /// MtlSharedEvent is the Metal `id<MTLSharedEvent>` object underlying the VkSemaphore or VkEvent object in semaphore or event, respectively. The implementation will return the MTLSharedEvent in this member, or it will return `NULL` if no MTLSharedEvent could be found underlying the VkSemaphore or VkEvent object. /// [FieldOffset(32)] public nint MtlSharedEvent; } }