Fix texelFetchOffset shader build error

This commit is contained in:
Thog 2019-02-17 22:38:16 +01:00
commit e5bd32968e
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6
2 changed files with 3 additions and 1 deletions

View file

@ -1255,7 +1255,8 @@ namespace Ryujinx.Graphics.Gal.Shader
if ((Suffix & TextureInstructionSuffix.AOffI) != 0) 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; return "texelFetch(" + Sampler + ", " + Coords + ", " + Lod + ")." + Ch;

View file

@ -88,6 +88,7 @@ namespace Ryujinx.Graphics.Gal.Shader
case 8: case 8:
case 0xa: case 0xa:
case 0xc: case 0xc:
case 0x18:
return GalTextureTarget.TwoD; return GalTextureTarget.TwoD;
case 0x10: case 0x10:
return GalTextureTarget.TwoDArray; return GalTextureTarget.TwoDArray;