aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Texture/Utils/RgbaColor8.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Graphics.Texture/Utils/RgbaColor8.cs')
-rw-r--r--src/Ryujinx.Graphics.Texture/Utils/RgbaColor8.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Ryujinx.Graphics.Texture/Utils/RgbaColor8.cs b/src/Ryujinx.Graphics.Texture/Utils/RgbaColor8.cs
index 0edf1cce..401bec38 100644
--- a/src/Ryujinx.Graphics.Texture/Utils/RgbaColor8.cs
+++ b/src/Ryujinx.Graphics.Texture/Utils/RgbaColor8.cs
@@ -54,22 +54,22 @@ namespace Ryujinx.Graphics.Texture.Utils
return Unsafe.As<RgbaColor8, uint>(ref this);
}
- public override int GetHashCode()
+ public readonly override int GetHashCode()
{
return HashCode.Combine(R, G, B, A);
}
- public override bool Equals(object obj)
+ public readonly override bool Equals(object obj)
{
return obj is RgbaColor8 other && Equals(other);
}
- public bool Equals(RgbaColor8 other)
+ public readonly bool Equals(RgbaColor8 other)
{
return R == other.R && G == other.G && B == other.B && A == other.A;
}
- public byte GetComponent(int index)
+ public readonly byte GetComponent(int index)
{
return index switch
{