diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2019-12-07 18:31:17 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | 6b13c5b439a54d0bb0139a2e33a2f76707db5fe7 (patch) | |
| tree | 00ff3f8c7ac2dc7e499a52434fa2f96460387c95 /Ryujinx.Graphics.Shader/Decoders/OpCodeTld4B.cs | |
| parent | 7ce5584f9e0d86f17ea4fc781483f60cfa288340 (diff) | |
Support bindless texture gather shader instruction
Diffstat (limited to 'Ryujinx.Graphics.Shader/Decoders/OpCodeTld4B.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Decoders/OpCodeTld4B.cs | 22 |
1 files changed, 22 insertions, 0 deletions
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 |
