aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-05-25 17:46:58 -0300
committerGitHub <noreply@github.com>2023-05-25 17:46:58 -0300
commit8f0c89ffd65eb2b979b24d457708218050fec6ae (patch)
tree5657b8a7f6246659d97f0f574f3f1829d65a235e /src/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs
parent2c9715acf6cb9ae8bceabec5e81602c7d64c7192 (diff)
Generate scaling helper functions on IR (#4714)1.1.822
* Generate scaling helper functions on IR * Delete unused code * Split RewriteTextureSample and move gather bias add to an earlier pass * Remove using * Shader cache version bump
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs')
-rw-r--r--src/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs b/src/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs
index 0c51b16f..2786caaa 100644
--- a/src/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs
+++ b/src/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs
@@ -49,13 +49,17 @@ namespace Ryujinx.Graphics.Shader.Translation
private readonly List<Operation> _operations;
private readonly Dictionary<ulong, BlockLabel> _labels;
- public EmitterContext(DecodedProgram program, ShaderConfig config, bool isNonMain)
+ public EmitterContext()
+ {
+ _operations = new List<Operation>();
+ _labels = new Dictionary<ulong, BlockLabel>();
+ }
+
+ public EmitterContext(DecodedProgram program, ShaderConfig config, bool isNonMain) : this()
{
Program = program;
Config = config;
IsNonMain = isNonMain;
- _operations = new List<Operation>();
- _labels = new Dictionary<ulong, BlockLabel>();
EmitStart();
}