aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/StructuredIr/AstOperation.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/StructuredIr/AstOperation.cs')
-rw-r--r--src/Ryujinx.Graphics.Shader/StructuredIr/AstOperation.cs16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/Ryujinx.Graphics.Shader/StructuredIr/AstOperation.cs b/src/Ryujinx.Graphics.Shader/StructuredIr/AstOperation.cs
index 4cf729d0..46555a85 100644
--- a/src/Ryujinx.Graphics.Shader/StructuredIr/AstOperation.cs
+++ b/src/Ryujinx.Graphics.Shader/StructuredIr/AstOperation.cs
@@ -14,7 +14,7 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
public int Index { get; }
- private IAstNode[] _sources;
+ private readonly IAstNode[] _sources;
public int SourcesCount => _sources.Length;
@@ -77,12 +77,18 @@ namespace Ryujinx.Graphics.Shader.StructuredIr
switch (componentsCount)
{
- case 2: type |= AggregateType.Vector2; break;
- case 3: type |= AggregateType.Vector3; break;
- case 4: type |= AggregateType.Vector4; break;
+ case 2:
+ type |= AggregateType.Vector2;
+ break;
+ case 3:
+ type |= AggregateType.Vector3;
+ break;
+ case 4:
+ type |= AggregateType.Vector4;
+ break;
}
return type;
}
}
-} \ No newline at end of file
+}