// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Runtime.InteropServices; using osuTK.Graphics.ES30; namespace osu.Framework.Graphics.OpenGL.Vertices { [StructLayout(LayoutKind.Sequential)] internal struct DepthWrappingVertex : IVertex, IEquatable> where TVertex : struct, IVertex, IEquatable { public TVertex Vertex; [VertexMember(1, VertexAttribPointerType.Float)] public float BackbufferDrawDepth; public readonly bool Equals(DepthWrappingVertex other) => Vertex.Equals(other.Vertex) && BackbufferDrawDepth.Equals(other.BackbufferDrawDepth); } }