using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Metal
{
///
/// VkExportMetalIOSurfaceInfoEXT - Structure that identifies a VkImage object and corresponding Metal IOSurfaceRef object
///
///
///
/// To export the Metal basetype:IOSurfaceRef object underlying a VkImage
/// object, include a VkExportMetalIOSurfaceInfoEXT structure in the
/// pNext chain of the pMetalObjectsInfo parameter of a
/// vkExportMetalObjectsEXT call.
///
///
/// The VkExportMetalIOSurfaceInfoEXT structure is defined as:
///
///
/// // Provided by VK_EXT_metal_objects
/// typedef struct VkExportMetalIOSurfaceInfoEXT {
/// VkStructureType sType;
/// const void* pNext;
/// VkImage image;
/// IOSurfaceRef ioSurface;
/// } VkExportMetalIOSurfaceInfoEXT;
///
///
[StructLayout(LayoutKind.Explicit, Size = 32)]
[SupportedOSPlatform("macos"), SupportedOSPlatform("ios")]
public unsafe partial struct VkExportMetalIOSurfaceInfoEXT()
{
///
/// sType is a VkStructureType value identifying this structure.
///
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ExportMetalIoSurfaceInfoEXT;
///
/// Next is `NULL` or a pointer to a structure extending this structure.
///
[FieldOffset(8)]
public void* Next;
///
/// Image is a VkImage.
///
[FieldOffset(16)]
public VkImage Image;
///
/// IoSurface is the Metal basetype:IOSurfaceRef object underlying the VkImage object in image. The implementation will return the basetype:IOSurfaceRef in this member, or it will return `NULL` if no basetype:IOSurfaceRef could be found underlying the VkImage object.
///
[FieldOffset(24)]
public nint IoSurface;
}
}