aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Shader/Decoders/OpCodeTld4.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics/Shader/Decoders/OpCodeTld4.cs')
-rw-r--r--Ryujinx.Graphics/Shader/Decoders/OpCodeTld4.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/Shader/Decoders/OpCodeTld4.cs b/Ryujinx.Graphics/Shader/Decoders/OpCodeTld4.cs
new file mode 100644
index 00000000..485edf93
--- /dev/null
+++ b/Ryujinx.Graphics/Shader/Decoders/OpCodeTld4.cs
@@ -0,0 +1,20 @@
+using Ryujinx.Graphics.Shader.Instructions;
+
+namespace Ryujinx.Graphics.Shader.Decoders
+{
+ class OpCodeTld4 : OpCodeTexture
+ {
+ public TextureGatherOffset Offset { get; }
+
+ public int GatherCompIndex { get; }
+
+ public OpCodeTld4(InstEmitter emitter, ulong address, long opCode) : base(emitter, address, opCode)
+ {
+ HasDepthCompare = opCode.Extract(50);
+
+ Offset = (TextureGatherOffset)opCode.Extract(54, 2);
+
+ GatherCompIndex = opCode.Extract(56, 2);
+ }
+ }
+} \ No newline at end of file