Add FaceAttr in GLSL, unmanaged case in EmitTex and ConstantColorG80 blend factor (#207)

* Add FaceAttr (0x3fc) input attribute in GLSL

* Implement unmanaged case in EmitTex

* Add ConstantColor for 0xC001 (G80) from PR #145
This commit is contained in:
ReinUsesLisp 2018-07-03 20:06:13 -03:00 committed by gdkchan
parent 741773910d
commit 9cbf908cf5
5 changed files with 46 additions and 16 deletions

View file

@ -9,6 +9,7 @@ namespace Ryujinx.Graphics.Gal.Shader
public const int TessCoordAttrZ = 0x2f8;
public const int InstanceIdAttr = 0x2f8;
public const int VertexIdAttr = 0x2fc;
public const int FaceAttr = 0x3fc;
public const int GlPositionWAttr = 0x7c;
public const int MaxUboSize = 1024;
@ -208,7 +209,8 @@ namespace Ryujinx.Graphics.Gal.Shader
{
//This is a built-in input variable.
if (Abuf.Offs == VertexIdAttr ||
Abuf.Offs == InstanceIdAttr)
Abuf.Offs == InstanceIdAttr ||
Abuf.Offs == FaceAttr)
{
break;
}