aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/CodeGen/Spirv/TextureMeta.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen/Spirv/TextureMeta.cs')
-rw-r--r--Ryujinx.Graphics.Shader/CodeGen/Spirv/TextureMeta.cs33
1 files changed, 2 insertions, 31 deletions
diff --git a/Ryujinx.Graphics.Shader/CodeGen/Spirv/TextureMeta.cs b/Ryujinx.Graphics.Shader/CodeGen/Spirv/TextureMeta.cs
index 686259ad..4de05603 100644
--- a/Ryujinx.Graphics.Shader/CodeGen/Spirv/TextureMeta.cs
+++ b/Ryujinx.Graphics.Shader/CodeGen/Spirv/TextureMeta.cs
@@ -1,33 +1,4 @@
-using System;
-
-namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
+namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
{
- struct TextureMeta : IEquatable<TextureMeta>
- {
- public int CbufSlot { get; }
- public int Handle { get; }
- public TextureFormat Format { get; }
-
- public TextureMeta(int cbufSlot, int handle, TextureFormat format)
- {
- CbufSlot = cbufSlot;
- Handle = handle;
- Format = format;
- }
-
- public override bool Equals(object obj)
- {
- return obj is TextureMeta other && Equals(other);
- }
-
- public bool Equals(TextureMeta other)
- {
- return CbufSlot == other.CbufSlot && Handle == other.Handle && Format == other.Format;
- }
-
- public override int GetHashCode()
- {
- return HashCode.Combine(CbufSlot, Handle, Format);
- }
- }
+ readonly record struct TextureMeta(int CbufSlot, int Handle, TextureFormat Format);
} \ No newline at end of file