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/ShaderIrOperGpr.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Ryujinx.Graphics/Gal/Shader/ShaderIrOperGpr.cs (limited to 'Ryujinx.Graphics/Gal/Shader/ShaderIrOperGpr.cs') diff --git a/Ryujinx.Graphics/Gal/Shader/ShaderIrOperGpr.cs b/Ryujinx.Graphics/Gal/Shader/ShaderIrOperGpr.cs new file mode 100644 index 00000000..5c69d6a6 --- /dev/null +++ b/Ryujinx.Graphics/Gal/Shader/ShaderIrOperGpr.cs @@ -0,0 +1,16 @@ +namespace Ryujinx.Graphics.Gal.Shader +{ + class ShaderIrOperGpr : ShaderIrNode + { + public const int ZRIndex = 0xff; + + public bool IsConst => Index == ZRIndex; + + public int Index { get; set; } + + public ShaderIrOperGpr(int Index) + { + this.Index = Index; + } + } +} \ No newline at end of file -- cgit v1.2.3