Fix texelFetchOffset shader build error

This commit is contained in:
Thog 2019-02-17 22:38:16 +01:00
parent 92b2fd3f6c
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)
{
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;

View file

@ -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;