Fix shader compilation error for TLD4.AOFFI with no DC
This commit is contained in:
parent
6dc88c85c9
commit
e0c20dab93
1 changed files with 7 additions and 1 deletions
|
@ -1438,7 +1438,13 @@ namespace Ryujinx.Graphics.Gal.Shader
|
|||
if ((Suffix & TextureInstructionSuffix.AOffI) != 0)
|
||||
{
|
||||
string Offset = GetTextureOffset(Meta, "floatBitsToInt((" + GetOperExpr(Op, Meta.Offset) + "))", 8, 0x3F);
|
||||
return "textureGatherOffset(" + Sampler + ", " + Coords + ", " + Comp + ", " + Offset + ")" + ChString;
|
||||
|
||||
if ((Suffix & TextureInstructionSuffix.DC) != 0)
|
||||
{
|
||||
return "textureGatherOffset(" + Sampler + ", " + Coords + ", " + Comp + ", " + Offset + ")" + ChString;
|
||||
}
|
||||
|
||||
return "textureGatherOffset(" + Sampler + ", " + Coords + ", " + Offset + ", " + Comp + ")" + ChString;
|
||||
}
|
||||
// TODO: Support PTP
|
||||
else if ((Suffix & TextureInstructionSuffix.PTP) != 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue