From 6b13c5b439a54d0bb0139a2e33a2f76707db5fe7 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 7 Dec 2019 18:31:17 -0300 Subject: Support bindless texture gather shader instruction --- Ryujinx.Graphics.Shader/Decoders/OpCodeTld4B.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Ryujinx.Graphics.Shader/Decoders/OpCodeTld4B.cs (limited to 'Ryujinx.Graphics.Shader/Decoders/OpCodeTld4B.cs') diff --git a/Ryujinx.Graphics.Shader/Decoders/OpCodeTld4B.cs b/Ryujinx.Graphics.Shader/Decoders/OpCodeTld4B.cs new file mode 100644 index 00000000..dc274d14 --- /dev/null +++ b/Ryujinx.Graphics.Shader/Decoders/OpCodeTld4B.cs @@ -0,0 +1,22 @@ +using Ryujinx.Graphics.Shader.Instructions; + +namespace Ryujinx.Graphics.Shader.Decoders +{ + class OpCodeTld4B : OpCodeTexture, IOpCodeTld4 + { + public TextureGatherOffset Offset { get; } + + public int GatherCompIndex { get; } + + public bool Bindless => true; + + public OpCodeTld4B(InstEmitter emitter, ulong address, long opCode) : base(emitter, address, opCode) + { + HasDepthCompare = opCode.Extract(50); + + Offset = (TextureGatherOffset)opCode.Extract(36, 2); + + GatherCompIndex = opCode.Extract(38, 2); + } + } +} \ No newline at end of file -- cgit v1.2.3