Fix texelFetchOffset shader build error
This commit is contained in:
parent
92b2fd3f6c
commit
e5bd32968e
2 changed files with 3 additions and 1 deletions
|
@ -1255,7 +1255,8 @@ namespace Ryujinx.Graphics.Gal.Shader
|
|||
|
||||
if ((Suffix & TextureInstructionSuffix.AOffI) != 0)
|
||||
{
|
||||
return "texelFetchOffset(" + Sampler + ", " + Coords + ", " + Lod + ", " + GetOperExpr(Op, Meta.Offset) + ")." + Ch;
|
||||
string Offset = GetTextureOffset(Meta, GetOperExpr(Op, Meta.Offset));
|
||||
return "texelFetchOffset(" + Sampler + ", " + Coords + ", " + Lod + ", " + Offset + ")." + Ch;
|
||||
}
|
||||
|
||||
return "texelFetch(" + Sampler + ", " + Coords + ", " + Lod + ")." + Ch;
|
||||
|
|
|
@ -88,6 +88,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
|||
case 8:
|
||||
case 0xa:
|
||||
case 0xc:
|
||||
case 0x18:
|
||||
return GalTextureTarget.TwoD;
|
||||
case 0x10:
|
||||
return GalTextureTarget.TwoDArray;
|
||||
|
|
Loading…
Add table
Reference in a new issue