Support bindless texture gather shader instruction
This commit is contained in:
parent
7ce5584f9e
commit
6b13c5b439
7 changed files with 69 additions and 3 deletions
|
@ -417,7 +417,7 @@ namespace Ryujinx.Graphics.Shader.Instructions
|
|||
|
||||
public static void Tld4(EmitterContext context)
|
||||
{
|
||||
OpCodeTld4 op = (OpCodeTld4)context.CurrOp;
|
||||
IOpCodeTld4 op = (IOpCodeTld4)context.CurrOp;
|
||||
|
||||
if (op.Rd.IsRZ)
|
||||
{
|
||||
|
@ -455,6 +455,13 @@ namespace Ryujinx.Graphics.Shader.Instructions
|
|||
|
||||
TextureFlags flags = TextureFlags.Gather;
|
||||
|
||||
if (op.Bindless)
|
||||
{
|
||||
sourcesList.Add(Rb());
|
||||
|
||||
flags |= TextureFlags.Bindless;
|
||||
}
|
||||
|
||||
int coordsCount = type.GetDimensions();
|
||||
|
||||
for (int index = 0; index < coordsCount; index++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue