aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/Shader/GlslDecl.cs
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-08-31 13:14:04 -0300
committergdkchan <gab.dark.100@gmail.com>2018-08-31 13:14:04 -0300
commit42dc925c3da59bf8801b14779482ee5bd9c25dc0 (patch)
tree6134135c08fe81414297b75fbf6e1a7479742d07 /Ryujinx.Graphics/Gal/Shader/GlslDecl.cs
parent7cb6fd8090513b703da9b83dec04866647694f09 (diff)
Implement SSY/SYNC shader instructions (#382)
* Use a program counter to control shaders' flow * Cleanup * Implement SSY/SYNC * Address feedback * Fixup commentary * Fixup Ssy instruction
Diffstat (limited to 'Ryujinx.Graphics/Gal/Shader/GlslDecl.cs')
-rw-r--r--Ryujinx.Graphics/Gal/Shader/GlslDecl.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/Ryujinx.Graphics/Gal/Shader/GlslDecl.cs b/Ryujinx.Graphics/Gal/Shader/GlslDecl.cs
index c22a282d..c837632e 100644
--- a/Ryujinx.Graphics/Gal/Shader/GlslDecl.cs
+++ b/Ryujinx.Graphics/Gal/Shader/GlslDecl.cs
@@ -43,9 +43,13 @@ namespace Ryujinx.Graphics.Gal.Shader
public const string FlipUniformName = "flip";
public const string InstanceUniformName = "instance";
- public const string ProgramName = "program";
- public const string ProgramAName = ProgramName + "_a";
- public const string ProgramBName = ProgramName + "_b";
+ public const string BasicBlockName = "bb";
+ public const string BasicBlockAName = BasicBlockName + "_a";
+ public const string BasicBlockBName = BasicBlockName + "_b";
+
+ public const int SsyStackSize = 16;
+ public const string SsyStackName = "ssy_stack";
+ public const string SsyCursorName = "ssy_cursor";
private string[] StagePrefixes = new string[] { "vp", "tcp", "tep", "gp", "fp" };