This commit is contained in:
ReinUsesLisp 2018-08-19 15:38:06 -03:00
parent 67fb356e9f
commit 084bc4397f
2 changed files with 9 additions and 9 deletions

View file

@ -42,9 +42,9 @@ namespace Ryujinx.Graphics.Gal.Shader
public const string ExtraUniformBlockName = "Extra"; public const string ExtraUniformBlockName = "Extra";
public const string FlipUniformName = "flip"; public const string FlipUniformName = "flip";
public const string ProgramName = "program"; public const string BasicBlockName = "bb";
public const string ProgramAName = ProgramName + "_a"; public const string BasicBlockAName = BasicBlockName + "_a";
public const string ProgramBName = ProgramName + "_b"; public const string BasicBlockBName = BasicBlockName + "_b";
private string[] StagePrefixes = new string[] { "vp", "tcp", "tep", "gp", "fp" }; private string[] StagePrefixes = new string[] { "vp", "tcp", "tep", "gp", "fp" };

View file

@ -158,15 +158,15 @@ namespace Ryujinx.Graphics.Gal.Shader
if (BlocksB != null) if (BlocksB != null)
{ {
PrintBlockScope(Blocks, "bb_a"); PrintBlockScope(Blocks, GlslDecl.BasicBlockAName);
SB.AppendLine(); SB.AppendLine();
PrintBlockScope(BlocksB, "bb_b"); PrintBlockScope(BlocksB, GlslDecl.BasicBlockBName);
} }
else else
{ {
PrintBlockScope(Blocks, "bb"); PrintBlockScope(Blocks, GlslDecl.BasicBlockName);
} }
SB.AppendLine(); SB.AppendLine();
@ -421,12 +421,12 @@ namespace Ryujinx.Graphics.Gal.Shader
if (BlocksB != null) if (BlocksB != null)
{ {
PrintProgram(Blocks, "bb_a"); PrintProgram(Blocks, GlslDecl.BasicBlockAName);
PrintProgram(BlocksB, "bb_b"); PrintProgram(BlocksB, GlslDecl.BasicBlockBName);
} }
else else
{ {
PrintProgram(Blocks, "bb"); PrintProgram(Blocks, GlslDecl.BasicBlockName);
} }
if (Decl.ShaderType != GalShaderType.Geometry) if (Decl.ShaderType != GalShaderType.Geometry)