Support bindless texture gather shader instruction

This commit is contained in:
gdkchan 2019-12-07 18:31:17 -03:00 committed by Thog
parent 7ce5584f9e
commit 6b13c5b439
7 changed files with 69 additions and 3 deletions

View 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);
}
}
}