diff options
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/CodeGen/Spirv/CodeGenContext.cs')
-rw-r--r-- | src/Ryujinx.Graphics.Shader/CodeGen/Spirv/CodeGenContext.cs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/CodeGenContext.cs b/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/CodeGenContext.cs index 9f9411a9..53267c60 100644 --- a/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/CodeGenContext.cs +++ b/src/Ryujinx.Graphics.Shader/CodeGen/Spirv/CodeGenContext.cs @@ -44,7 +44,6 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv public StructuredFunction CurrentFunction { get; set; } private readonly Dictionary<AstOperand, Instruction> _locals = new(); - private readonly Dictionary<int, Instruction[]> _localForArgs = new(); private readonly Dictionary<int, Instruction> _funcArgs = new(); private readonly Dictionary<int, (StructuredFunction, Instruction)> _functions = new(); @@ -112,7 +111,6 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv IsMainFunction = isMainFunction; MayHaveReturned = false; _locals.Clear(); - _localForArgs.Clear(); _funcArgs.Clear(); } @@ -169,11 +167,6 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv _locals.Add(local, spvLocal); } - public void DeclareLocalForArgs(int funcIndex, Instruction[] spvLocals) - { - _localForArgs.Add(funcIndex, spvLocals); - } - public void DeclareArgument(int argIndex, Instruction spvLocal) { _funcArgs.Add(argIndex, spvLocal); @@ -278,11 +271,6 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv return _locals[local]; } - public Instruction[] GetLocalForArgsPointers(int funcIndex) - { - return _localForArgs[funcIndex]; - } - public Instruction GetArgumentPointer(AstOperand funcArg) { return _funcArgs[funcArg.Value]; |