Support bindless texture gather shader instruction
This commit is contained in:
parent
7ce5584f9e
commit
6b13c5b439
7 changed files with 69 additions and 3 deletions
22
Ryujinx.Graphics.Shader/Decoders/OpCodeTld4B.cs
Normal file
22
Ryujinx.Graphics.Shader/Decoders/OpCodeTld4B.cs
Normal file
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue