using System.Runtime.InteropServices; namespace Brutal.GliApi; public static partial class Gli { /// /// Represent the source of a channel /// public enum Swizzle { Red, Green, Blue, Alpha, Zero, One, First = Red, ChannelFirst = Red, ChannelLast = Alpha, Last = One, } /// /// Implementation of the Gli swizzles /// [StructLayout(LayoutKind.Sequential)] public struct Swizzles() { /// /// The R channel swizzle /// public Swizzle R = Swizzle.Red; /// /// The G channel swizzle /// public Swizzle G = Swizzle.Green; /// /// The B channel swizzle /// public Swizzle B = Swizzle.Blue; /// /// The A channel swizzle /// public Swizzle A = Swizzle.Alpha; /// /// /// public static Swizzles Identity => new Swizzles(); } }