aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs')
-rw-r--r--src/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs b/src/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs
index 87e5457f..9eedc3f9 100644
--- a/src/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs
+++ b/src/Ryujinx.Graphics.Shader/Translation/EmitterContext.cs
@@ -4,7 +4,6 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.Numerics;
using System.Runtime.CompilerServices;
-
using static Ryujinx.Graphics.Shader.IntermediateRepresentation.OperandHelper;
namespace Ryujinx.Graphics.Shader.Translation
@@ -84,7 +83,7 @@ namespace Ryujinx.Graphics.Shader.Translation
public Operand Add(Instruction inst, Operand dest = null, params Operand[] sources)
{
- Operation operation = new Operation(inst, dest, sources);
+ Operation operation = new(inst, dest, sources);
_operations.Add(operation);
@@ -93,7 +92,7 @@ namespace Ryujinx.Graphics.Shader.Translation
public Operand Add(Instruction inst, StorageKind storageKind, Operand dest = null, params Operand[] sources)
{
- Operation operation = new Operation(inst, storageKind, dest, sources);
+ Operation operation = new(inst, storageKind, dest, sources);
_operations.Add(operation);
@@ -104,7 +103,7 @@ namespace Ryujinx.Graphics.Shader.Translation
{
Operand[] dests = new[] { dest.Item1, dest.Item2 };
- Operation operation = new Operation(inst, 0, dests, sources);
+ Operation operation = new(inst, 0, dests, sources);
Add(operation);
@@ -430,7 +429,7 @@ namespace Ryujinx.Graphics.Shader.Translation
AlphaTestOp.Less => Instruction.CompareLess,
AlphaTestOp.LessOrEqual => Instruction.CompareLessOrEqual,
AlphaTestOp.NotEqual => Instruction.CompareNotEqual,
- _ => 0
+ _ => 0,
};
Debug.Assert(comparator != 0, $"Invalid alpha test operation \"{alphaTestOp}\".");
@@ -532,4 +531,4 @@ namespace Ryujinx.Graphics.Shader.Translation
return _operations.ToArray();
}
}
-} \ No newline at end of file
+}