IEquatable<ColorMaskState> for ColorMaskState

This commit is contained in:
samfromdeath 2019-02-21 17:54:43 +11:00
commit 90e597f59e

View file

@ -1,6 +1,8 @@
namespace Ryujinx.Graphics.Gal using System;
namespace Ryujinx.Graphics.Gal
{ {
public struct ColorMaskState public struct ColorMaskState : IEquatable<ColorMaskState>
{ {
private static readonly ColorMaskState _Default = new ColorMaskState() private static readonly ColorMaskState _Default = new ColorMaskState()
{ {
@ -16,6 +18,11 @@
public bool Green; public bool Green;
public bool Blue; public bool Blue;
public bool Alpha; public bool Alpha;
public bool Equals(ColorMaskState other)
{
return other.Red != Red || other.Green != Green || other.Blue != Blue || other.Alpha != Alpha;
}
} }
public struct BlendState public struct BlendState