using System.Runtime.Versioning; namespace Brutal.VulkanApi.Metal { /// /// VkExportMetalDeviceInfoEXT - Structure that identifies a VkDevice object and corresponding Metal MTLDevice object /// /// /// /// To export the Metal MTLDevice object underlying the /// VkPhysicalDevice associated with a VkDevice object, include a /// VkExportMetalDeviceInfoEXT structure in the pNext chain of the /// pMetalObjectsInfo parameter of a vkExportMetalObjectsEXT call. /// /// /// The VkExportMetalDeviceInfoEXT structure is defined as: /// /// /// // Provided by VK_EXT_metal_objects /// typedef struct VkExportMetalDeviceInfoEXT { /// VkStructureType sType; /// const void* pNext; /// MTLDevice_id mtlDevice; /// } VkExportMetalDeviceInfoEXT; /// /// [StructLayout(LayoutKind.Explicit, Size = 24)] [SupportedOSPlatform("macos"), SupportedOSPlatform("ios")] public unsafe partial struct VkExportMetalDeviceInfoEXT() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ExportMetalDeviceInfoEXT; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// MtlDevice is the Metal `id<MTLDevice>` object underlying the VkPhysicalDevice associated with the VkDevice object identified in the call. The implementation will return the MTLDevice in this member, or it will return `NULL` if no MTLDevice could be found underlying the VkPhysicalDevice object. /// [FieldOffset(16)] public nint MtlDevice; } }