namespace Ryujinx.Graphics.Gpu.State { /// /// Render target color buffer mask. /// This defines which color channels are written to the color buffer. /// struct RtColorMask { #pragma warning disable CS0649 public uint Packed; #pragma warning restore CS0649 /// /// Unpacks red channel enable. /// /// True to write the new red channel color, false to keep the old value public bool UnpackRed() { return (Packed & 0x1) != 0; } /// /// Unpacks green channel enable. /// /// True to write the new green channel color, false to keep the old value public bool UnpackGreen() { return (Packed & 0x10) != 0; } /// /// Unpacks blue channel enable. /// /// True to write the new blue channel color, false to keep the old value public bool UnpackBlue() { return (Packed & 0x100) != 0; } /// /// Unpacks alpha channel enable. /// /// True to write the new alpha channel color, false to keep the old value public bool UnpackAlpha() { return (Packed & 0x1000) != 0; } } }