aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Translation/Translator.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-02-25 07:39:51 -0300
committerGitHub <noreply@github.com>2023-02-25 10:39:51 +0000
commitcedd2007451c046a1276556bacb4e19333b11557 (patch)
treeea755d325fc23e0dca26e6138609a24429b37ce9 /Ryujinx.Graphics.Shader/Translation/Translator.cs
parent58207685c0dcda07d18f5f538629c775e2a714b8 (diff)
Move gl_Layer to vertex shader if geometry is not supported (#4368)
* Set gl_Layer on vertex shader if it's set on the geometry shader and it does nothing else * Shader cache version bump * PR feedback * Fix typo
Diffstat (limited to 'Ryujinx.Graphics.Shader/Translation/Translator.cs')
-rw-r--r--Ryujinx.Graphics.Shader/Translation/Translator.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Shader/Translation/Translator.cs b/Ryujinx.Graphics.Shader/Translation/Translator.cs
index 3fb586cb..6a123045 100644
--- a/Ryujinx.Graphics.Shader/Translation/Translator.cs
+++ b/Ryujinx.Graphics.Shader/Translation/Translator.cs
@@ -77,9 +77,11 @@ namespace Ryujinx.Graphics.Shader.Translation
funcs[i] = new Function(cfg.Blocks, $"fun{i}", false, inArgumentsCount, outArgumentsCount);
}
+ var identification = ShaderIdentifier.Identify(funcs, config);
+
var sInfo = StructuredProgram.MakeStructuredProgram(funcs, config);
- var info = config.CreateProgramInfo();
+ var info = config.CreateProgramInfo(identification);
return config.Options.TargetLanguage switch
{