aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/OpenGL
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-07-15 19:37:27 -0300
committergdkchan <gab.dark.100@gmail.com>2018-07-15 19:37:27 -0300
commit3e13b40b353a61fe57d1bc1440e1db9bc133df08 (patch)
tree524a073524241c6868f149d8807e23a842e33adf /Ryujinx.Graphics/Gal/OpenGL
parent063fae50fe25388d10e9ec1915c561dc0f4d519d (diff)
Add config key to dump shaders in local directory (#265)
* Add config key to dump shaders in local directory * Address feedback
Diffstat (limited to 'Ryujinx.Graphics/Gal/OpenGL')
-rw-r--r--Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs b/Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs
index c55a758b..ad717755 100644
--- a/Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs
+++ b/Ryujinx.Graphics/Gal/OpenGL/OGLShader.cs
@@ -118,6 +118,9 @@ namespace Ryujinx.Graphics.Gal.OpenGL
if (IsDualVp)
{
+ ShaderDumper.Dump(Memory, Position + 0x50, Type, "a");
+ ShaderDumper.Dump(Memory, PositionB + 0x50, Type, "b");
+
Program = Decompiler.Decompile(
Memory,
Position + 0x50,
@@ -126,6 +129,8 @@ namespace Ryujinx.Graphics.Gal.OpenGL
}
else
{
+ ShaderDumper.Dump(Memory, Position + 0x50, Type);
+
Program = Decompiler.Decompile(Memory, Position + 0x50, Type);
}