diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-10-21 09:13:44 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-21 09:13:44 -0300 |
| commit | 2f164917126ecef3a44c989e9442d2c663e58535 (patch) | |
| tree | b3a37b665bcebfe5c93108992a97fe90512f88dc /Ryujinx.Graphics.Shader/Decoders/Decoder.cs | |
| parent | efa77a241555efa3ddfa3425919211ce6c8134a7 (diff) | |
Get rid of Reflection.Emit dependency on CPU and Shader projects (#1626)
* Get rid of Reflection.Emit dependency on CPU and Shader projects
* Remove useless private sets
* Missed those due to the alignment
Diffstat (limited to 'Ryujinx.Graphics.Shader/Decoders/Decoder.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Decoders/Decoder.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Ryujinx.Graphics.Shader/Decoders/Decoder.cs b/Ryujinx.Graphics.Shader/Decoders/Decoder.cs index a15d7f9e..3f08bdd9 100644 --- a/Ryujinx.Graphics.Shader/Decoders/Decoder.cs +++ b/Ryujinx.Graphics.Shader/Decoders/Decoder.cs @@ -231,7 +231,7 @@ namespace Ryujinx.Graphics.Shader.Decoders long opCode = gpuAccessor.MemoryRead<long>(startAddress + opAddress); - (InstEmitter emitter, OpCodeTable.OpActivator opActivator) = OpCodeTable.GetEmitter(opCode); + (InstEmitter emitter, OpCodeTable.MakeOp makeOp) = OpCodeTable.GetEmitter(opCode); if (emitter == null) { @@ -242,12 +242,12 @@ namespace Ryujinx.Graphics.Shader.Decoders continue; } - if (opActivator == null) + if (makeOp == null) { - throw new ArgumentNullException(nameof(opActivator)); + throw new ArgumentNullException(nameof(makeOp)); } - OpCode op = (OpCode)opActivator(emitter, opAddress, opCode); + OpCode op = makeOp(emitter, opAddress, opCode); block.OpCodes.Add(op); } |
