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