From b9aa3966c00b4bb3ff0292dc28ed53ad26cf284b Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 8 Apr 2018 16:17:35 -0300 Subject: Merge shader branch, adding support for GLSL decompilation, a macro interpreter, and a rewrite of the GPU code. --- Ryujinx.Graphics/Gal/Shader/ShaderIrOperPred.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Ryujinx.Graphics/Gal/Shader/ShaderIrOperPred.cs (limited to 'Ryujinx.Graphics/Gal/Shader/ShaderIrOperPred.cs') diff --git a/Ryujinx.Graphics/Gal/Shader/ShaderIrOperPred.cs b/Ryujinx.Graphics/Gal/Shader/ShaderIrOperPred.cs new file mode 100644 index 00000000..74cca0ef --- /dev/null +++ b/Ryujinx.Graphics/Gal/Shader/ShaderIrOperPred.cs @@ -0,0 +1,17 @@ +namespace Ryujinx.Graphics.Gal.Shader +{ + class ShaderIrOperPred : ShaderIrNode + { + public const int UnusedIndex = 0x7; + public const int NeverExecute = 0xf; + + public bool IsConst => Index >= UnusedIndex; + + public int Index { get; set; } + + public ShaderIrOperPred(int Index) + { + this.Index = Index; + } + } +} \ No newline at end of file -- cgit v1.2.3