aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/StructuredIr/AstHelper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/StructuredIr/AstHelper.cs')
-rw-r--r--src/Ryujinx.Graphics.Shader/StructuredIr/AstHelper.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Ryujinx.Graphics.Shader/StructuredIr/AstHelper.cs b/src/Ryujinx.Graphics.Shader/StructuredIr/AstHelper.cs
index 7aa0409b..06d13c90 100644
--- a/src/Ryujinx.Graphics.Shader/StructuredIr/AstHelper.cs
+++ b/src/Ryujinx.Graphics.Shader/StructuredIr/AstHelper.cs
@@ -49,9 +49,10 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
public static AstOperand Local(AggregateType type)
{
- AstOperand local = new AstOperand(OperandType.LocalVariable);
-
- local.VarType = type;
+ AstOperand local = new(OperandType.LocalVariable)
+ {
+ VarType = type,
+ };
return local;
}
@@ -71,4 +72,4 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
return node.LLNode.Previous?.Value;
}
}
-} \ No newline at end of file
+}