diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-08-11 17:27:00 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-11 22:27:00 +0200 |
| commit | ed754af8d5046d2fd7218c742521e38ab17cbcfe (patch) | |
| tree | d47eda40349a7b4b3fc34d9db9ddeea8f2d0676a /Ryujinx.Graphics.Shader/Translation/EmitterContext.cs | |
| parent | 10d649e6d3ad3e4af32d2b41e718bb0a2924da67 (diff) | |
Make sure attributes used on subsequent shader stages are initialized (#2538)
Diffstat (limited to 'Ryujinx.Graphics.Shader/Translation/EmitterContext.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Translation/EmitterContext.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs b/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs index 49a89374..5cdd5c0a 100644 --- a/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs +++ b/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs @@ -15,6 +15,8 @@ namespace Ryujinx.Graphics.Shader.Translation public bool IsNonMain { get; } + public int OperationsCount => _operations.Count; + private readonly IReadOnlyDictionary<ulong, int> _funcs; private readonly List<Operation> _operations; private readonly Dictionary<ulong, Operand> _labels; @@ -200,6 +202,7 @@ namespace Ryujinx.Graphics.Shader.Translation if (target.Enabled) { + Config.SetOutputUserAttribute(rtIndex); regIndexBase += 4; } } |
