diff options
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Shader/GpuChannelPoolState.cs')
-rw-r--r-- | src/Ryujinx.Graphics.Gpu/Shader/GpuChannelPoolState.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Shader/GpuChannelPoolState.cs b/src/Ryujinx.Graphics.Gpu/Shader/GpuChannelPoolState.cs index ddb45152e..a2ab99335 100644 --- a/src/Ryujinx.Graphics.Gpu/Shader/GpuChannelPoolState.cs +++ b/src/Ryujinx.Graphics.Gpu/Shader/GpuChannelPoolState.cs | |||
@@ -2,7 +2,6 @@ using System; | |||
2 | 2 | ||
3 | namespace Ryujinx.Graphics.Gpu.Shader | 3 | namespace Ryujinx.Graphics.Gpu.Shader |
4 | { | 4 | { |
5 | #pragma warning disable CS0659 // Class overrides Object.Equals(object o) but does not override Object.GetHashCode() | ||
6 | /// <summary> | 5 | /// <summary> |
7 | /// State used by the <see cref="GpuAccessor"/>. | 6 | /// State used by the <see cref="GpuAccessor"/>. |
8 | /// </summary> | 7 | /// </summary> |
@@ -52,6 +51,10 @@ namespace Ryujinx.Graphics.Gpu.Shader | |||
52 | { | 51 | { |
53 | return obj is GpuChannelPoolState state && Equals(state); | 52 | return obj is GpuChannelPoolState state && Equals(state); |
54 | } | 53 | } |
54 | |||
55 | public override int GetHashCode() | ||
56 | { | ||
57 | return HashCode.Combine(TexturePoolGpuVa, TexturePoolMaximumId, TextureBufferIndex); | ||
58 | } | ||
55 | } | 59 | } |
56 | #pragma warning restore CS0659 | ||
57 | } | 60 | } |