diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool.cs
index ff6bbb70..b1fe373a 100644
--- a/src/ComputeSharp.Core/Primitives/Bool/Bool.cs
+++ b/src/ComputeSharp.Core/Primitives/Bool/Bool.cs
@@ -20,16 +20,28 @@ namespace ComputeSharp
/// Creates a new instance for a given value.
///
/// .
- private Bool(bool value) => Value = value;
+ private Bool(bool value)
+ {
+ Value = value;
+ }
///
- public override bool Equals(object? obj) => obj is Bool x && Value == x.Value;
+ public override bool Equals(object? obj)
+ {
+ return obj is Bool x && Value == x.Value;
+ }
///
- public override int GetHashCode() => Value.GetHashCode();
+ public override int GetHashCode()
+ {
+ return Value.GetHashCode();
+ }
///
- public override string ToString() => Value.ToString();
+ public override string ToString()
+ {
+ return Value.ToString();
+ }
///
/// Checks whether or not two instances represent the same value.
@@ -49,7 +61,7 @@ namespace ComputeSharp
/// Inverts the value represented by a given instance.
///
/// The input instance.
- public static Bool operator !(Bool x) => new Bool(!x.Value);
+ public static Bool operator !(Bool x) => new(!x.Value);
///
/// Converts a given instance to its corresponding value.
@@ -61,6 +73,6 @@ namespace ComputeSharp
/// Converts a value to a corresponding instance.
///
/// The input value.
- public static implicit operator Bool(bool x) => new Bool(x);
+ public static implicit operator Bool(bool x) => new(x);
}
}
diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool2.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool2.cs
index 13d32e3c..581bdcf5 100644
--- a/src/ComputeSharp.Core/Primitives/Bool/Bool2.cs
+++ b/src/ComputeSharp.Core/Primitives/Bool/Bool2.cs
@@ -24,12 +24,12 @@ namespace ComputeSharp
///
/// Gets an value with the component set to , and the others to .
///
- public static Bool2 TrueX => new Bool2(true, false);
+ public static Bool2 TrueX => new(true, false);
///
/// Gets an value with the component set to , and the others to .
///
- public static Bool2 TrueY => new Bool2(false, true);
+ public static Bool2 TrueY => new(false, true);
///
/// Creates a new instance with the specified parameters.
@@ -154,6 +154,6 @@ namespace ComputeSharp
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
- public static implicit operator Bool2(bool x) => new Bool2(x, x);
+ public static implicit operator Bool2(bool x) => new(x, x);
}
}
diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool3.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool3.cs
index 6450c6b1..67ad7199 100644
--- a/src/ComputeSharp.Core/Primitives/Bool/Bool3.cs
+++ b/src/ComputeSharp.Core/Primitives/Bool/Bool3.cs
@@ -24,17 +24,17 @@ namespace ComputeSharp
///
/// Gets an value with the component set to , and the others to .
///
- public static Bool3 TrueX => new Bool3(true, false, false);
+ public static Bool3 TrueX => new(true, false, false);
///
/// Gets an value with the component set to , and the others to .
///
- public static Bool3 TrueY => new Bool3(false, true, false);
+ public static Bool3 TrueY => new(false, true, false);
///
/// Gets an value with the component set to , and the others to .
///
- public static Bool3 TrueZ => new Bool3(false, false, true);
+ public static Bool3 TrueZ => new(false, false, true);
///
/// Creates a new instance with the specified parameters.
@@ -263,32 +263,32 @@ namespace ComputeSharp
///
/// Gets an value with the value for all components.
///
- public Bool2 XXX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XXX)}");
+ public Bool3 XXX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XXX)}");
///
/// Gets an value with the , and values.
///
- public Bool2 XXY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XXY)}");
+ public Bool3 XXY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XXY)}");
///
/// Gets an value with the , and values.
///
- public Bool2 XXZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XXZ)}");
+ public Bool3 XXZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XXZ)}");
///
/// Gets an value with the , and values.
///
- public Bool2 XYX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XYX)}");
+ public Bool3 XYX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XYX)}");
///
/// Gets an value with the , and values.
///
- public Bool2 XYY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XYY)}");
+ public Bool3 XYY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XYY)}");
///
/// Gets or sets an value with the , and values.
///
- public Bool2 XYZ
+ public Bool3 XYZ
{
get => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XYZ)}");
set => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XYZ)}");
@@ -297,12 +297,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Bool2 XZX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XZX)}");
+ public Bool3 XZX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XZX)}");
///
/// Gets or sets an value with the , and values.
///
- public Bool2 XZY
+ public Bool3 XZY
{
get => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XZY)}");
set => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XZY)}");
@@ -311,22 +311,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Bool2 XZZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XZZ)}");
+ public Bool3 XZZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XZZ)}");
///
/// Gets an value with the , and values.
///
- public Bool2 YXX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YXX)}");
+ public Bool3 YXX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YXX)}");
///
/// Gets an value with the , and values.
///
- public Bool2 YXY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YXY)}");
+ public Bool3 YXY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YXY)}");
///
/// Gets or sets an value with the , and values.
///
- public Bool2 YXZ
+ public Bool3 YXZ
{
get => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YXZ)}");
set => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YXZ)}");
@@ -335,22 +335,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Bool2 YYX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YYX)}");
+ public Bool3 YYX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YYX)}");
///
/// Gets an value with the value for all components.
///
- public Bool2 YYY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YYY)}");
+ public Bool3 YYY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YYY)}");
///
/// Gets an value with the , and values.
///
- public Bool2 YYZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YYZ)}");
+ public Bool3 YYZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YYZ)}");
///
/// Gets or sets an value with the , and values.
///
- public Bool2 YZX
+ public Bool3 YZX
{
get => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YZX)}");
set => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YZX)}");
@@ -359,22 +359,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Bool2 YZY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YZY)}");
+ public Bool3 YZY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YZY)}");
///
/// Gets an value with the , and values.
///
- public Bool2 YZZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YZZ)}");
+ public Bool3 YZZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YZZ)}");
///
/// Gets an value with the , and values.
///
- public Bool2 ZXX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZXX)}");
+ public Bool3 ZXX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZXX)}");
///
/// Gets or sets an value with the , and values.
///
- public Bool2 ZXY
+ public Bool3 ZXY
{
get => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZXY)}");
set => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZXY)}");
@@ -383,12 +383,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Bool2 ZXZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZXZ)}");
+ public Bool3 ZXZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZXZ)}");
///
/// Gets or sets an value with the , and values.
///
- public Bool2 ZYX
+ public Bool3 ZYX
{
get => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZYX)}");
set => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZYX)}");
@@ -397,57 +397,57 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Bool2 ZYY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZYY)}");
+ public Bool3 ZYY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZYY)}");
///
/// Gets an value with the , and values.
///
- public Bool2 ZYZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZYZ)}");
+ public Bool3 ZYZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZYZ)}");
///
/// Gets an value with the , and values.
///
- public Bool2 ZZX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZZX)}");
+ public Bool3 ZZX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZZX)}");
///
/// Gets an value with the , and values.
///
- public Bool2 ZZY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZZY)}");
+ public Bool3 ZZY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZZY)}");
///
/// Gets an value with the value for all components.
///
- public Bool2 ZZZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZZZ)}");
+ public Bool3 ZZZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZZZ)}");
///
/// Gets an value with the value for all components.
///
- public Bool2 RRR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RRR)}");
+ public Bool3 RRR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RRR)}");
///
/// Gets an value with the , and values.
///
- public Bool2 RRG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RRG)}");
+ public Bool3 RRG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RRG)}");
///
/// Gets an value with the , and values.
///
- public Bool2 RRB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RRB)}");
+ public Bool3 RRB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RRB)}");
///
/// Gets an value with the , and values.
///
- public Bool2 RGR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RGR)}");
+ public Bool3 RGR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RGR)}");
///
/// Gets an value with the , and values.
///
- public Bool2 RGG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RGG)}");
+ public Bool3 RGG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RGG)}");
///
/// Gets or sets an value with the , and values.
///
- public Bool2 RGB
+ public Bool3 RGB
{
get => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RGB)}");
set => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RGB)}");
@@ -456,12 +456,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Bool2 RBR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RBR)}");
+ public Bool3 RBR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RBR)}");
///
/// Gets or sets an value with the , and values.
///
- public Bool2 RBG
+ public Bool3 RBG
{
get => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RBG)}");
set => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RBG)}");
@@ -470,22 +470,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Bool2 RBB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RBB)}");
+ public Bool3 RBB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RBB)}");
///
/// Gets an value with the , and values.
///
- public Bool2 GRR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GRR)}");
+ public Bool3 GRR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GRR)}");
///
/// Gets an value with the , and values.
///
- public Bool2 GRG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GRG)}");
+ public Bool3 GRG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GRG)}");
///
/// Gets or sets an value with the , and values.
///
- public Bool2 GRB
+ public Bool3 GRB
{
get => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GRB)}");
set => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GRB)}");
@@ -494,22 +494,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Bool2 GGR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GGR)}");
+ public Bool3 GGR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GGR)}");
///
/// Gets an value with the value for all components.
///
- public Bool2 GGG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GGG)}");
+ public Bool3 GGG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GGG)}");
///
/// Gets an value with the , and values.
///
- public Bool2 GGB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GGB)}");
+ public Bool3 GGB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GGB)}");
///
/// Gets or sets an value with the , and values.
///
- public Bool2 GBR
+ public Bool3 GBR
{
get => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GBR)}");
set => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GBR)}");
@@ -518,22 +518,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Bool2 GBG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GBG)}");
+ public Bool3 GBG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GBG)}");
///
/// Gets an value with the , and values.
///
- public Bool2 GBB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GBB)}");
+ public Bool3 GBB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GBB)}");
///
/// Gets an value with the , and values.
///
- public Bool2 BRR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BRR)}");
+ public Bool3 BRR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BRR)}");
///
/// Gets or sets an value with the , and values.
///
- public Bool2 BRG
+ public Bool3 BRG
{
get => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BRG)}");
set => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BRG)}");
@@ -542,12 +542,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Bool2 BRB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BRB)}");
+ public Bool3 BRB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BRB)}");
///
/// Gets or sets an value with the , and values.
///
- public Bool2 BGR
+ public Bool3 BGR
{
get => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BGR)}");
set => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BGR)}");
@@ -556,32 +556,32 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Bool2 BGG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BGG)}");
+ public Bool3 BGG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BGG)}");
///
/// Gets an value with the , and values.
///
- public Bool2 BGB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BGB)}");
+ public Bool3 BGB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BGB)}");
///
/// Gets an value with the , and values.
///
- public Bool2 BBR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BBR)}");
+ public Bool3 BBR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BBR)}");
///
/// Gets an value with the , and values.
///
- public Bool2 BBG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BBG)}");
+ public Bool3 BBG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BBG)}");
///
/// Gets an value with the value for all components.
///
- public Bool2 BBB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BBB)}");
+ public Bool3 BBB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BBB)}");
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
- public static implicit operator Bool3(bool x) => new Bool3(x, x, x);
+ public static implicit operator Bool3(bool x) => new(x, x, x);
}
}
diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool4.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool4.cs
index cfb92514..2ca262e2 100644
--- a/src/ComputeSharp.Core/Primitives/Bool/Bool4.cs
+++ b/src/ComputeSharp.Core/Primitives/Bool/Bool4.cs
@@ -24,22 +24,22 @@ namespace ComputeSharp
///
/// Gets an value with the component set to , and the others to .
///
- public static Bool4 TrueX => new Bool4(true, false, false, false);
+ public static Bool4 TrueX => new(true, false, false, false);
///
/// Gets an value with the component set to , and the others to .
///
- public static Bool4 TrueY => new Bool4(false, true, false, false);
+ public static Bool4 TrueY => new(false, true, false, false);
///
/// Gets an value with the component set to , and the others to .
///
- public static Bool4 TrueZ => new Bool4(false, false, true, false);
+ public static Bool4 TrueZ => new(false, false, true, false);
///
/// Gets an value with the component set to , and the others to .
///
- public static Bool4 TrueW => new Bool4(false, false, false, true);
+ public static Bool4 TrueW => new(false, false, false, true);
///
/// Creates a new instance with the specified parameters.
@@ -3994,6 +3994,6 @@ namespace ComputeSharp
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
- public static implicit operator Bool4(bool x) => new Bool4(x, x, x, x);
+ public static implicit operator Bool4(bool x) => new(x, x, x, x);
}
}
diff --git a/src/ComputeSharp.Core/Primitives/Double/Double2.cs b/src/ComputeSharp.Core/Primitives/Double/Double2.cs
index 5809961b..7409862c 100644
--- a/src/ComputeSharp.Core/Primitives/Double/Double2.cs
+++ b/src/ComputeSharp.Core/Primitives/Double/Double2.cs
@@ -24,12 +24,12 @@ namespace ComputeSharp
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Double2 UnitX => new Double2(1, 0);
+ public static Double2 UnitX => new(1, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Double2 UnitY => new Double2(0, 1);
+ public static Double2 UnitY => new(0, 1);
///
/// Creates a new instance with the specified parameters.
@@ -140,7 +140,7 @@ namespace ComputeSharp
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
- public static implicit operator Double2(double x) => new Double2(x, x);
+ public static implicit operator Double2(double x) => new(x, x);
///
/// Sums two values.
diff --git a/src/ComputeSharp.Core/Primitives/Double/Double3.cs b/src/ComputeSharp.Core/Primitives/Double/Double3.cs
index a9e01edc..27eb3b80 100644
--- a/src/ComputeSharp.Core/Primitives/Double/Double3.cs
+++ b/src/ComputeSharp.Core/Primitives/Double/Double3.cs
@@ -24,17 +24,17 @@ namespace ComputeSharp
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Double3 UnitX => new Double3(1, 0, 0);
+ public static Double3 UnitX => new(1, 0, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Double3 UnitY => new Double3(0, 1, 0);
+ public static Double3 UnitY => new(0, 1, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Double3 UnitZ => new Double3(0, 0, 1);
+ public static Double3 UnitZ => new(0, 0, 1);
///
/// Creates a new instance with the specified parameters.
@@ -242,32 +242,32 @@ namespace ComputeSharp
///
/// Gets an value with the value for all components.
///
- public Double2 XXX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XXX)}");
+ public Double3 XXX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XXX)}");
///
/// Gets an value with the , and values.
///
- public Double2 XXY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XXY)}");
+ public Double3 XXY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XXY)}");
///
/// Gets an value with the , and values.
///
- public Double2 XXZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XXZ)}");
+ public Double3 XXZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XXZ)}");
///
/// Gets an value with the , and values.
///
- public Double2 XYX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XYX)}");
+ public Double3 XYX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XYX)}");
///
/// Gets an value with the , and values.
///
- public Double2 XYY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XYY)}");
+ public Double3 XYY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XYY)}");
///
/// Gets or sets an value with the , and values.
///
- public Double2 XYZ
+ public Double3 XYZ
{
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XYZ)}");
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XYZ)}");
@@ -276,12 +276,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Double2 XZX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XZX)}");
+ public Double3 XZX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XZX)}");
///
/// Gets or sets an value with the , and values.
///
- public Double2 XZY
+ public Double3 XZY
{
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XZY)}");
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XZY)}");
@@ -290,22 +290,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Double2 XZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XZZ)}");
+ public Double3 XZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XZZ)}");
///
/// Gets an value with the , and values.
///
- public Double2 YXX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YXX)}");
+ public Double3 YXX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YXX)}");
///
/// Gets an value with the , and values.
///
- public Double2 YXY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YXY)}");
+ public Double3 YXY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YXY)}");
///
/// Gets or sets an value with the , and values.
///
- public Double2 YXZ
+ public Double3 YXZ
{
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YXZ)}");
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YXZ)}");
@@ -314,22 +314,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Double2 YYX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YYX)}");
+ public Double3 YYX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YYX)}");
///
/// Gets an value with the value for all components.
///
- public Double2 YYY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YYY)}");
+ public Double3 YYY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YYY)}");
///
/// Gets an value with the , and values.
///
- public Double2 YYZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YYZ)}");
+ public Double3 YYZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YYZ)}");
///
/// Gets or sets an value with the , and values.
///
- public Double2 YZX
+ public Double3 YZX
{
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YZX)}");
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YZX)}");
@@ -338,22 +338,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Double2 YZY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YZY)}");
+ public Double3 YZY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YZY)}");
///
/// Gets an value with the , and values.
///
- public Double2 YZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YZZ)}");
+ public Double3 YZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YZZ)}");
///
/// Gets an value with the , and values.
///
- public Double2 ZXX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZXX)}");
+ public Double3 ZXX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZXX)}");
///
/// Gets or sets an value with the , and values.
///
- public Double2 ZXY
+ public Double3 ZXY
{
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZXY)}");
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZXY)}");
@@ -362,12 +362,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Double2 ZXZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZXZ)}");
+ public Double3 ZXZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZXZ)}");
///
/// Gets or sets an value with the , and values.
///
- public Double2 ZYX
+ public Double3 ZYX
{
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZYX)}");
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZYX)}");
@@ -376,57 +376,57 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Double2 ZYY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZYY)}");
+ public Double3 ZYY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZYY)}");
///
/// Gets an value with the , and values.
///
- public Double2 ZYZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZYZ)}");
+ public Double3 ZYZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZYZ)}");
///
/// Gets an value with the , and values.
///
- public Double2 ZZX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZX)}");
+ public Double3 ZZX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZX)}");
///
/// Gets an value with the , and values.
///
- public Double2 ZZY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZY)}");
+ public Double3 ZZY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZY)}");
///
/// Gets an value with the value for all components.
///
- public Double2 ZZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZZ)}");
+ public Double3 ZZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZZ)}");
///
/// Gets an value with the value for all components.
///
- public Double2 RRR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RRR)}");
+ public Double3 RRR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RRR)}");
///
/// Gets an value with the , and values.
///
- public Double2 RRG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RRG)}");
+ public Double3 RRG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RRG)}");
///
/// Gets an value with the , and values.
///
- public Double2 RRB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RRB)}");
+ public Double3 RRB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RRB)}");
///
/// Gets an value with the , and values.
///
- public Double2 RGR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RGR)}");
+ public Double3 RGR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RGR)}");
///
/// Gets an value with the , and values.
///
- public Double2 RGG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RGG)}");
+ public Double3 RGG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RGG)}");
///
/// Gets or sets an value with the , and values.
///
- public Double2 RGB
+ public Double3 RGB
{
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RGB)}");
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RGB)}");
@@ -435,12 +435,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Double2 RBR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RBR)}");
+ public Double3 RBR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RBR)}");
///
/// Gets or sets an value with the , and values.
///
- public Double2 RBG
+ public Double3 RBG
{
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RBG)}");
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RBG)}");
@@ -449,22 +449,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Double2 RBB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RBB)}");
+ public Double3 RBB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RBB)}");
///
/// Gets an value with the , and values.
///
- public Double2 GRR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GRR)}");
+ public Double3 GRR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GRR)}");
///
/// Gets an value with the , and values.
///
- public Double2 GRG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GRG)}");
+ public Double3 GRG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GRG)}");
///
/// Gets or sets an value with the , and values.
///
- public Double2 GRB
+ public Double3 GRB
{
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GRB)}");
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GRB)}");
@@ -473,22 +473,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Double2 GGR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GGR)}");
+ public Double3 GGR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GGR)}");
///
/// Gets an value with the value for all components.
///
- public Double2 GGG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GGG)}");
+ public Double3 GGG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GGG)}");
///
/// Gets an value with the , and values.
///
- public Double2 GGB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GGB)}");
+ public Double3 GGB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GGB)}");
///
/// Gets or sets an value with the , and values.
///
- public Double2 GBR
+ public Double3 GBR
{
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GBR)}");
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GBR)}");
@@ -497,22 +497,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Double2 GBG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GBG)}");
+ public Double3 GBG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GBG)}");
///
/// Gets an value with the , and values.
///
- public Double2 GBB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GBB)}");
+ public Double3 GBB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GBB)}");
///
/// Gets an value with the , and values.
///
- public Double2 BRR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BRR)}");
+ public Double3 BRR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BRR)}");
///
/// Gets or sets an value with the , and values.
///
- public Double2 BRG
+ public Double3 BRG
{
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BRG)}");
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BRG)}");
@@ -521,12 +521,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Double2 BRB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BRB)}");
+ public Double3 BRB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BRB)}");
///
/// Gets or sets an value with the , and values.
///
- public Double2 BGR
+ public Double3 BGR
{
get => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BGR)}");
set => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BGR)}");
@@ -535,33 +535,33 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Double2 BGG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BGG)}");
+ public Double3 BGG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BGG)}");
///
/// Gets an value with the , and values.
///
- public Double2 BGB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BGB)}");
+ public Double3 BGB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BGB)}");
///
/// Gets an value with the , and values.
///
- public Double2 BBR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BBR)}");
+ public Double3 BBR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BBR)}");
///
/// Gets an value with the , and values.
///
- public Double2 BBG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BBG)}");
+ public Double3 BBG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BBG)}");
///
/// Gets an value with the value for all components.
///
- public Double2 BBB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BBB)}");
+ public Double3 BBB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BBB)}");
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
- public static implicit operator Double3(double x) => new Double3(x, x, x);
+ public static implicit operator Double3(double x) => new(x, x, x);
///
/// Sums two values.
diff --git a/src/ComputeSharp.Core/Primitives/Double/Double4.cs b/src/ComputeSharp.Core/Primitives/Double/Double4.cs
index a87dcfba..d59ddf09 100644
--- a/src/ComputeSharp.Core/Primitives/Double/Double4.cs
+++ b/src/ComputeSharp.Core/Primitives/Double/Double4.cs
@@ -24,22 +24,22 @@ namespace ComputeSharp
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Double4 UnitX => new Double4(1, 0, 0, 0);
+ public static Double4 UnitX => new(1, 0, 0, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Double4 UnitY => new Double4(0, 1, 0, 0);
+ public static Double4 UnitY => new(0, 1, 0, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Double4 UnitZ => new Double4(0, 0, 1, 0);
+ public static Double4 UnitZ => new(0, 0, 1, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Double4 UnitW => new Double4(0, 0, 0, 1);
+ public static Double4 UnitW => new(0, 0, 0, 1);
///
/// Creates a new instance with the specified parameters.
@@ -3966,7 +3966,7 @@ namespace ComputeSharp
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
- public static implicit operator Double4(double x) => new Double4(x, x, x, x);
+ public static implicit operator Double4(double x) => new(x, x, x, x);
///
/// Sums two values.
diff --git a/src/ComputeSharp.Core/Primitives/Float/Float2.cs b/src/ComputeSharp.Core/Primitives/Float/Float2.cs
index 69ff3eec..266cbe77 100644
--- a/src/ComputeSharp.Core/Primitives/Float/Float2.cs
+++ b/src/ComputeSharp.Core/Primitives/Float/Float2.cs
@@ -24,12 +24,12 @@ namespace ComputeSharp
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Float2 UnitX => new Float2(1, 0);
+ public static Float2 UnitX => new(1, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Float2 UnitY => new Float2(0, 1);
+ public static Float2 UnitY => new(0, 1);
///
/// Creates a new instance with the specified parameters.
@@ -140,7 +140,7 @@ namespace ComputeSharp
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
- public static implicit operator Float2(float x) => new Float2(x, x);
+ public static implicit operator Float2(float x) => new(x, x);
///
/// Sums two values.
diff --git a/src/ComputeSharp.Core/Primitives/Float/Float3.cs b/src/ComputeSharp.Core/Primitives/Float/Float3.cs
index 20b9c1f2..d8d9675b 100644
--- a/src/ComputeSharp.Core/Primitives/Float/Float3.cs
+++ b/src/ComputeSharp.Core/Primitives/Float/Float3.cs
@@ -24,17 +24,17 @@ namespace ComputeSharp
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Float3 UnitX => new Float3(1, 0, 0);
+ public static Float3 UnitX => new(1, 0, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Float3 UnitY => new Float3(0, 1, 0);
+ public static Float3 UnitY => new(0, 1, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Float3 UnitZ => new Float3(0, 0, 1);
+ public static Float3 UnitZ => new(0, 0, 1);
///
/// Creates a new instance with the specified parameters.
@@ -242,32 +242,32 @@ namespace ComputeSharp
///
/// Gets an value with the value for all components.
///
- public Float2 XXX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XXX)}");
+ public Float3 XXX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XXX)}");
///
/// Gets an value with the , and values.
///
- public Float2 XXY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XXY)}");
+ public Float3 XXY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XXY)}");
///
/// Gets an value with the , and values.
///
- public Float2 XXZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XXZ)}");
+ public Float3 XXZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XXZ)}");
///
/// Gets an value with the , and values.
///
- public Float2 XYX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XYX)}");
+ public Float3 XYX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XYX)}");
///
/// Gets an value with the , and values.
///
- public Float2 XYY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XYY)}");
+ public Float3 XYY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XYY)}");
///
/// Gets or sets an value with the , and values.
///
- public Float2 XYZ
+ public Float3 XYZ
{
get => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XYZ)}");
set => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XYZ)}");
@@ -276,12 +276,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Float2 XZX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XZX)}");
+ public Float3 XZX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XZX)}");
///
/// Gets or sets an value with the , and values.
///
- public Float2 XZY
+ public Float3 XZY
{
get => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XZY)}");
set => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XZY)}");
@@ -290,22 +290,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Float2 XZZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XZZ)}");
+ public Float3 XZZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XZZ)}");
///
/// Gets an value with the , and values.
///
- public Float2 YXX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YXX)}");
+ public Float3 YXX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YXX)}");
///
/// Gets an value with the , and values.
///
- public Float2 YXY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YXY)}");
+ public Float3 YXY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YXY)}");
///
/// Gets or sets an value with the , and values.
///
- public Float2 YXZ
+ public Float3 YXZ
{
get => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YXZ)}");
set => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YXZ)}");
@@ -314,22 +314,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Float2 YYX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YYX)}");
+ public Float3 YYX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YYX)}");
///
/// Gets an value with the value for all components.
///
- public Float2 YYY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YYY)}");
+ public Float3 YYY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YYY)}");
///
/// Gets an value with the , and values.
///
- public Float2 YYZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YYZ)}");
+ public Float3 YYZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YYZ)}");
///
/// Gets or sets an value with the , and values.
///
- public Float2 YZX
+ public Float3 YZX
{
get => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YZX)}");
set => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YZX)}");
@@ -338,22 +338,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Float2 YZY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YZY)}");
+ public Float3 YZY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YZY)}");
///
/// Gets an value with the , and values.
///
- public Float2 YZZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YZZ)}");
+ public Float3 YZZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YZZ)}");
///
/// Gets an value with the , and values.
///
- public Float2 ZXX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZXX)}");
+ public Float3 ZXX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZXX)}");
///
/// Gets or sets an value with the , and values.
///
- public Float2 ZXY
+ public Float3 ZXY
{
get => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZXY)}");
set => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZXY)}");
@@ -362,12 +362,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Float2 ZXZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZXZ)}");
+ public Float3 ZXZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZXZ)}");
///
/// Gets or sets an value with the , and values.
///
- public Float2 ZYX
+ public Float3 ZYX
{
get => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZYX)}");
set => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZYX)}");
@@ -376,57 +376,57 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Float2 ZYY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZYY)}");
+ public Float3 ZYY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZYY)}");
///
/// Gets an value with the , and values.
///
- public Float2 ZYZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZYZ)}");
+ public Float3 ZYZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZYZ)}");
///
/// Gets an value with the , and values.
///
- public Float2 ZZX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZZX)}");
+ public Float3 ZZX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZZX)}");
///
/// Gets an value with the , and values.
///
- public Float2 ZZY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZZY)}");
+ public Float3 ZZY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZZY)}");
///
/// Gets an value with the value for all components.
///
- public Float2 ZZZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZZZ)}");
+ public Float3 ZZZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZZZ)}");
///
/// Gets an value with the value for all components.
///
- public Float2 RRR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RRR)}");
+ public Float3 RRR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RRR)}");
///
/// Gets an value with the , and values.
///
- public Float2 RRG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RRG)}");
+ public Float3 RRG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RRG)}");
///
/// Gets an value with the , and values.
///
- public Float2 RRB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RRB)}");
+ public Float3 RRB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RRB)}");
///
/// Gets an value with the , and values.
///
- public Float2 RGR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RGR)}");
+ public Float3 RGR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RGR)}");
///
/// Gets an value with the , and values.
///
- public Float2 RGG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RGG)}");
+ public Float3 RGG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RGG)}");
///
/// Gets or sets an value with the , and values.
///
- public Float2 RGB
+ public Float3 RGB
{
get => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RGB)}");
set => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RGB)}");
@@ -435,12 +435,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Float2 RBR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RBR)}");
+ public Float3 RBR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RBR)}");
///
/// Gets or sets an value with the , and values.
///
- public Float2 RBG
+ public Float3 RBG
{
get => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RBG)}");
set => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RBG)}");
@@ -449,22 +449,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Float2 RBB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RBB)}");
+ public Float3 RBB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RBB)}");
///
/// Gets an value with the , and values.
///
- public Float2 GRR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GRR)}");
+ public Float3 GRR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GRR)}");
///
/// Gets an value with the , and values.
///
- public Float2 GRG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GRG)}");
+ public Float3 GRG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GRG)}");
///
/// Gets or sets an value with the , and values.
///
- public Float2 GRB
+ public Float3 GRB
{
get => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GRB)}");
set => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GRB)}");
@@ -473,22 +473,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Float2 GGR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GGR)}");
+ public Float3 GGR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GGR)}");
///
/// Gets an value with the value for all components.
///
- public Float2 GGG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GGG)}");
+ public Float3 GGG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GGG)}");
///
/// Gets an value with the , and values.
///
- public Float2 GGB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GGB)}");
+ public Float3 GGB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GGB)}");
///
/// Gets or sets an value with the , and values.
///
- public Float2 GBR
+ public Float3 GBR
{
get => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GBR)}");
set => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GBR)}");
@@ -497,22 +497,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Float2 GBG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GBG)}");
+ public Float3 GBG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GBG)}");
///
/// Gets an value with the , and values.
///
- public Float2 GBB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GBB)}");
+ public Float3 GBB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GBB)}");
///
/// Gets an value with the , and values.
///
- public Float2 BRR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BRR)}");
+ public Float3 BRR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BRR)}");
///
/// Gets or sets an value with the , and values.
///
- public Float2 BRG
+ public Float3 BRG
{
get => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BRG)}");
set => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BRG)}");
@@ -521,12 +521,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Float2 BRB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BRB)}");
+ public Float3 BRB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BRB)}");
///
/// Gets or sets an value with the , and values.
///
- public Float2 BGR
+ public Float3 BGR
{
get => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BGR)}");
set => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BGR)}");
@@ -535,33 +535,33 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Float2 BGG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BGG)}");
+ public Float3 BGG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BGG)}");
///
/// Gets an value with the , and values.
///
- public Float2 BGB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BGB)}");
+ public Float3 BGB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BGB)}");
///
/// Gets an value with the , and values.
///
- public Float2 BBR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BBR)}");
+ public Float3 BBR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BBR)}");
///
/// Gets an value with the , and values.
///
- public Float2 BBG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BBG)}");
+ public Float3 BBG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BBG)}");
///
/// Gets an value with the value for all components.
///
- public Float2 BBB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BBB)}");
+ public Float3 BBB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BBB)}");
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
- public static implicit operator Float3(float x) => new Float3(x, x, x);
+ public static implicit operator Float3(float x) => new(x, x, x);
///
/// Sums two values.
diff --git a/src/ComputeSharp.Core/Primitives/Float/Float4.cs b/src/ComputeSharp.Core/Primitives/Float/Float4.cs
index 3dbaa07e..e112ab95 100644
--- a/src/ComputeSharp.Core/Primitives/Float/Float4.cs
+++ b/src/ComputeSharp.Core/Primitives/Float/Float4.cs
@@ -24,22 +24,22 @@ namespace ComputeSharp
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Float4 UnitX => new Float4(1, 0, 0, 0);
+ public static Float4 UnitX => new(1, 0, 0, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Float4 UnitY => new Float4(0, 1, 0, 0);
+ public static Float4 UnitY => new(0, 1, 0, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Float4 UnitZ => new Float4(0, 0, 1, 0);
+ public static Float4 UnitZ => new(0, 0, 1, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Float4 UnitW => new Float4(0, 0, 0, 1);
+ public static Float4 UnitW => new(0, 0, 0, 1);
///
/// Creates a new instance with the specified parameters.
@@ -3966,7 +3966,7 @@ namespace ComputeSharp
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
- public static implicit operator Float4(float x) => new Float4(x, x, x, x);
+ public static implicit operator Float4(float x) => new(x, x, x, x);
///
/// Sums two values.
diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.cs b/src/ComputeSharp.Core/Primitives/Int/Int2.cs
index dc41c1ca..76e238a5 100644
--- a/src/ComputeSharp.Core/Primitives/Int/Int2.cs
+++ b/src/ComputeSharp.Core/Primitives/Int/Int2.cs
@@ -24,12 +24,12 @@ namespace ComputeSharp
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Int2 UnitX => new Int2(1, 0);
+ public static Int2 UnitX => new(1, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Int2 UnitY => new Int2(0, 1);
+ public static Int2 UnitY => new(0, 1);
///
/// Creates a new instance with the specified parameters.
@@ -140,7 +140,7 @@ namespace ComputeSharp
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
- public static implicit operator Int2(int x) => new Int2(x, x);
+ public static implicit operator Int2(int x) => new(x, x);
///
/// Sums two values.
diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.cs
index 620ebb81..cb2f09f2 100644
--- a/src/ComputeSharp.Core/Primitives/Int/Int3.cs
+++ b/src/ComputeSharp.Core/Primitives/Int/Int3.cs
@@ -24,17 +24,17 @@ namespace ComputeSharp
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Int3 UnitX => new Int3(1, 0, 0);
+ public static Int3 UnitX => new(1, 0, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Int3 UnitY => new Int3(0, 1, 0);
+ public static Int3 UnitY => new(0, 1, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Int3 UnitZ => new Int3(0, 0, 1);
+ public static Int3 UnitZ => new(0, 0, 1);
///
/// Creates a new instance with the specified parameters.
@@ -242,32 +242,32 @@ namespace ComputeSharp
///
/// Gets an value with the value for all components.
///
- public Int2 XXX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XXX)}");
+ public Int3 XXX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XXX)}");
///
/// Gets an value with the , and values.
///
- public Int2 XXY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XXY)}");
+ public Int3 XXY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XXY)}");
///
/// Gets an value with the , and values.
///
- public Int2 XXZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XXZ)}");
+ public Int3 XXZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XXZ)}");
///
/// Gets an value with the , and values.
///
- public Int2 XYX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYX)}");
+ public Int3 XYX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYX)}");
///
/// Gets an value with the , and values.
///
- public Int2 XYY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYY)}");
+ public Int3 XYY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYY)}");
///
/// Gets or sets an value with the , and values.
///
- public Int2 XYZ
+ public Int3 XYZ
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYZ)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYZ)}");
@@ -276,12 +276,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Int2 XZX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZX)}");
+ public Int3 XZX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZX)}");
///
/// Gets or sets an value with the , and values.
///
- public Int2 XZY
+ public Int3 XZY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZY)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZY)}");
@@ -290,22 +290,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Int2 XZZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZZ)}");
+ public Int3 XZZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZZ)}");
///
/// Gets an value with the , and values.
///
- public Int2 YXX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXX)}");
+ public Int3 YXX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXX)}");
///
/// Gets an value with the , and values.
///
- public Int2 YXY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXY)}");
+ public Int3 YXY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXY)}");
///
/// Gets or sets an value with the , and values.
///
- public Int2 YXZ
+ public Int3 YXZ
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXZ)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXZ)}");
@@ -314,22 +314,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Int2 YYX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYX)}");
+ public Int3 YYX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYX)}");
///
/// Gets an value with the value for all components.
///
- public Int2 YYY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYY)}");
+ public Int3 YYY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYY)}");
///
/// Gets an value with the , and values.
///
- public Int2 YYZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYZ)}");
+ public Int3 YYZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYZ)}");
///
/// Gets or sets an value with the , and values.
///
- public Int2 YZX
+ public Int3 YZX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZX)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZX)}");
@@ -338,22 +338,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Int2 YZY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZY)}");
+ public Int3 YZY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZY)}");
///
/// Gets an value with the , and values.
///
- public Int2 YZZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZZ)}");
+ public Int3 YZZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZZ)}");
///
/// Gets an value with the , and values.
///
- public Int2 ZXX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXX)}");
+ public Int3 ZXX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXX)}");
///
/// Gets or sets an value with the , and values.
///
- public Int2 ZXY
+ public Int3 ZXY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXY)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXY)}");
@@ -362,12 +362,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Int2 ZXZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXZ)}");
+ public Int3 ZXZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXZ)}");
///
/// Gets or sets an value with the , and values.
///
- public Int2 ZYX
+ public Int3 ZYX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYX)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYX)}");
@@ -376,57 +376,57 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Int2 ZYY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYY)}");
+ public Int3 ZYY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYY)}");
///
/// Gets an value with the , and values.
///
- public Int2 ZYZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYZ)}");
+ public Int3 ZYZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYZ)}");
///
/// Gets an value with the , and values.
///
- public Int2 ZZX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZX)}");
+ public Int3 ZZX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZX)}");
///
/// Gets an value with the , and values.
///
- public Int2 ZZY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZY)}");
+ public Int3 ZZY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZY)}");
///
/// Gets an value with the value for all components.
///
- public Int2 ZZZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZZ)}");
+ public Int3 ZZZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZZ)}");
///
/// Gets an value with the value for all components.
///
- public Int2 RRR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RRR)}");
+ public Int3 RRR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RRR)}");
///
/// Gets an value with the , and values.
///
- public Int2 RRG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RRG)}");
+ public Int3 RRG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RRG)}");
///
/// Gets an value with the , and values.
///
- public Int2 RRB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RRB)}");
+ public Int3 RRB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RRB)}");
///
/// Gets an value with the , and values.
///
- public Int2 RGR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGR)}");
+ public Int3 RGR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGR)}");
///
/// Gets an value with the , and values.
///
- public Int2 RGG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGG)}");
+ public Int3 RGG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGG)}");
///
/// Gets or sets an value with the , and values.
///
- public Int2 RGB
+ public Int3 RGB
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGB)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGB)}");
@@ -435,12 +435,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Int2 RBR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBR)}");
+ public Int3 RBR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBR)}");
///
/// Gets or sets an value with the , and values.
///
- public Int2 RBG
+ public Int3 RBG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBG)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBG)}");
@@ -449,22 +449,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Int2 RBB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBB)}");
+ public Int3 RBB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBB)}");
///
/// Gets an value with the , and values.
///
- public Int2 GRR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRR)}");
+ public Int3 GRR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRR)}");
///
/// Gets an value with the , and values.
///
- public Int2 GRG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRG)}");
+ public Int3 GRG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRG)}");
///
/// Gets or sets an value with the , and values.
///
- public Int2 GRB
+ public Int3 GRB
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRB)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRB)}");
@@ -473,22 +473,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Int2 GGR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGR)}");
+ public Int3 GGR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGR)}");
///
/// Gets an value with the value for all components.
///
- public Int2 GGG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGG)}");
+ public Int3 GGG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGG)}");
///
/// Gets an value with the , and values.
///
- public Int2 GGB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGB)}");
+ public Int3 GGB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGB)}");
///
/// Gets or sets an value with the , and values.
///
- public Int2 GBR
+ public Int3 GBR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBR)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBR)}");
@@ -497,22 +497,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Int2 GBG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBG)}");
+ public Int3 GBG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBG)}");
///
/// Gets an value with the , and values.
///
- public Int2 GBB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBB)}");
+ public Int3 GBB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBB)}");
///
/// Gets an value with the , and values.
///
- public Int2 BRR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRR)}");
+ public Int3 BRR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRR)}");
///
/// Gets or sets an value with the , and values.
///
- public Int2 BRG
+ public Int3 BRG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRG)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRG)}");
@@ -521,12 +521,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Int2 BRB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRB)}");
+ public Int3 BRB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRB)}");
///
/// Gets or sets an value with the , and values.
///
- public Int2 BGR
+ public Int3 BGR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGR)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGR)}");
@@ -535,33 +535,33 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public Int2 BGG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGG)}");
+ public Int3 BGG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGG)}");
///
/// Gets an value with the , and values.
///
- public Int2 BGB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGB)}");
+ public Int3 BGB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGB)}");
///
/// Gets an value with the , and values.
///
- public Int2 BBR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBR)}");
+ public Int3 BBR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBR)}");
///
/// Gets an value with the , and values.
///
- public Int2 BBG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBG)}");
+ public Int3 BBG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBG)}");
///
/// Gets an value with the value for all components.
///
- public Int2 BBB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBB)}");
+ public Int3 BBB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBB)}");
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
- public static implicit operator Int3(int x) => new Int3(x, x, x);
+ public static implicit operator Int3(int x) => new(x, x, x);
///
/// Sums two values.
diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.cs
index ed11b46b..692f5e66 100644
--- a/src/ComputeSharp.Core/Primitives/Int/Int4.cs
+++ b/src/ComputeSharp.Core/Primitives/Int/Int4.cs
@@ -24,22 +24,22 @@ namespace ComputeSharp
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Int4 UnitX => new Int4(1, 0, 0, 0);
+ public static Int4 UnitX => new(1, 0, 0, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Int4 UnitY => new Int4(0, 1, 0, 0);
+ public static Int4 UnitY => new(0, 1, 0, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Int4 UnitZ => new Int4(0, 0, 1, 0);
+ public static Int4 UnitZ => new(0, 0, 1, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static Int4 UnitW => new Int4(0, 0, 0, 1);
+ public static Int4 UnitW => new(0, 0, 0, 1);
///
/// Creates a new instance with the specified parameters.
@@ -3966,7 +3966,7 @@ namespace ComputeSharp
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
- public static implicit operator Int4(int x) => new Int4(x, x, x, x);
+ public static implicit operator Int4(int x) => new(x, x, x, x);
///
/// Sums two values.
diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt2.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt2.cs
index 5f40d45f..8865306e 100644
--- a/src/ComputeSharp.Core/Primitives/UInt/UInt2.cs
+++ b/src/ComputeSharp.Core/Primitives/UInt/UInt2.cs
@@ -24,12 +24,12 @@ namespace ComputeSharp
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static UInt2 UnitX => new UInt2(1, 0);
+ public static UInt2 UnitX => new(1, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static UInt2 UnitY => new UInt2(0, 1);
+ public static UInt2 UnitY => new(0, 1);
///
/// Creates a new instance with the specified parameters.
@@ -140,7 +140,7 @@ namespace ComputeSharp
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
- public static implicit operator UInt2(uint x) => new UInt2(x, x);
+ public static implicit operator UInt2(uint x) => new(x, x);
///
/// Sums two values.
diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt3.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt3.cs
index ccaa7d12..7f4bfc83 100644
--- a/src/ComputeSharp.Core/Primitives/UInt/UInt3.cs
+++ b/src/ComputeSharp.Core/Primitives/UInt/UInt3.cs
@@ -24,17 +24,17 @@ namespace ComputeSharp
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static UInt3 UnitX => new UInt3(1, 0, 0);
+ public static UInt3 UnitX => new(1, 0, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static UInt3 UnitY => new UInt3(0, 1, 0);
+ public static UInt3 UnitY => new(0, 1, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static UInt3 UnitZ => new UInt3(0, 0, 1);
+ public static UInt3 UnitZ => new(0, 0, 1);
///
/// Creates a new instance with the specified parameters.
@@ -242,32 +242,32 @@ namespace ComputeSharp
///
/// Gets an value with the value for all components.
///
- public UInt2 XXX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XXX)}");
+ public UInt3 XXX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XXX)}");
///
/// Gets an value with the , and values.
///
- public UInt2 XXY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XXY)}");
+ public UInt3 XXY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XXY)}");
///
/// Gets an value with the , and values.
///
- public UInt2 XXZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XXZ)}");
+ public UInt3 XXZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XXZ)}");
///
/// Gets an value with the , and values.
///
- public UInt2 XYX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XYX)}");
+ public UInt3 XYX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XYX)}");
///
/// Gets an value with the , and values.
///
- public UInt2 XYY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XYY)}");
+ public UInt3 XYY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XYY)}");
///
/// Gets or sets an value with the , and values.
///
- public UInt2 XYZ
+ public UInt3 XYZ
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XYZ)}");
set => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XYZ)}");
@@ -276,12 +276,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public UInt2 XZX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XZX)}");
+ public UInt3 XZX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XZX)}");
///
/// Gets or sets an value with the , and values.
///
- public UInt2 XZY
+ public UInt3 XZY
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XZY)}");
set => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XZY)}");
@@ -290,22 +290,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public UInt2 XZZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XZZ)}");
+ public UInt3 XZZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XZZ)}");
///
/// Gets an value with the , and values.
///
- public UInt2 YXX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YXX)}");
+ public UInt3 YXX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YXX)}");
///
/// Gets an value with the , and values.
///
- public UInt2 YXY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YXY)}");
+ public UInt3 YXY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YXY)}");
///
/// Gets or sets an value with the , and values.
///
- public UInt2 YXZ
+ public UInt3 YXZ
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YXZ)}");
set => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YXZ)}");
@@ -314,22 +314,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public UInt2 YYX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YYX)}");
+ public UInt3 YYX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YYX)}");
///
/// Gets an value with the value for all components.
///
- public UInt2 YYY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YYY)}");
+ public UInt3 YYY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YYY)}");
///
/// Gets an value with the , and values.
///
- public UInt2 YYZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YYZ)}");
+ public UInt3 YYZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YYZ)}");
///
/// Gets or sets an value with the , and values.
///
- public UInt2 YZX
+ public UInt3 YZX
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YZX)}");
set => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YZX)}");
@@ -338,22 +338,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public UInt2 YZY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YZY)}");
+ public UInt3 YZY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YZY)}");
///
/// Gets an value with the , and values.
///
- public UInt2 YZZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YZZ)}");
+ public UInt3 YZZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YZZ)}");
///
/// Gets an value with the , and values.
///
- public UInt2 ZXX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZXX)}");
+ public UInt3 ZXX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZXX)}");
///
/// Gets or sets an value with the , and values.
///
- public UInt2 ZXY
+ public UInt3 ZXY
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZXY)}");
set => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZXY)}");
@@ -362,12 +362,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public UInt2 ZXZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZXZ)}");
+ public UInt3 ZXZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZXZ)}");
///
/// Gets or sets an value with the , and values.
///
- public UInt2 ZYX
+ public UInt3 ZYX
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZYX)}");
set => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZYX)}");
@@ -376,57 +376,57 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public UInt2 ZYY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZYY)}");
+ public UInt3 ZYY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZYY)}");
///
/// Gets an value with the , and values.
///
- public UInt2 ZYZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZYZ)}");
+ public UInt3 ZYZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZYZ)}");
///
/// Gets an value with the , and values.
///
- public UInt2 ZZX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZZX)}");
+ public UInt3 ZZX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZZX)}");
///
/// Gets an value with the , and values.
///
- public UInt2 ZZY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZZY)}");
+ public UInt3 ZZY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZZY)}");
///
/// Gets an value with the value for all components.
///
- public UInt2 ZZZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZZZ)}");
+ public UInt3 ZZZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZZZ)}");
///
/// Gets an value with the value for all components.
///
- public UInt2 RRR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RRR)}");
+ public UInt3 RRR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RRR)}");
///
/// Gets an value with the , and values.
///
- public UInt2 RRG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RRG)}");
+ public UInt3 RRG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RRG)}");
///
/// Gets an value with the , and values.
///
- public UInt2 RRB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RRB)}");
+ public UInt3 RRB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RRB)}");
///
/// Gets an value with the , and values.
///
- public UInt2 RGR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RGR)}");
+ public UInt3 RGR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RGR)}");
///
/// Gets an value with the , and values.
///
- public UInt2 RGG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RGG)}");
+ public UInt3 RGG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RGG)}");
///
/// Gets or sets an value with the , and values.
///
- public UInt2 RGB
+ public UInt3 RGB
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RGB)}");
set => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RGB)}");
@@ -435,12 +435,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public UInt2 RBR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RBR)}");
+ public UInt3 RBR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RBR)}");
///
/// Gets or sets an value with the , and values.
///
- public UInt2 RBG
+ public UInt3 RBG
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RBG)}");
set => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RBG)}");
@@ -449,22 +449,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public UInt2 RBB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RBB)}");
+ public UInt3 RBB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RBB)}");
///
/// Gets an value with the , and values.
///
- public UInt2 GRR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GRR)}");
+ public UInt3 GRR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GRR)}");
///
/// Gets an value with the , and values.
///
- public UInt2 GRG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GRG)}");
+ public UInt3 GRG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GRG)}");
///
/// Gets or sets an value with the , and values.
///
- public UInt2 GRB
+ public UInt3 GRB
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GRB)}");
set => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GRB)}");
@@ -473,22 +473,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public UInt2 GGR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GGR)}");
+ public UInt3 GGR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GGR)}");
///
/// Gets an value with the value for all components.
///
- public UInt2 GGG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GGG)}");
+ public UInt3 GGG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GGG)}");
///
/// Gets an value with the , and values.
///
- public UInt2 GGB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GGB)}");
+ public UInt3 GGB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GGB)}");
///
/// Gets or sets an value with the , and values.
///
- public UInt2 GBR
+ public UInt3 GBR
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GBR)}");
set => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GBR)}");
@@ -497,22 +497,22 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public UInt2 GBG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GBG)}");
+ public UInt3 GBG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GBG)}");
///
/// Gets an value with the , and values.
///
- public UInt2 GBB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GBB)}");
+ public UInt3 GBB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GBB)}");
///
/// Gets an value with the , and values.
///
- public UInt2 BRR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BRR)}");
+ public UInt3 BRR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BRR)}");
///
/// Gets or sets an value with the , and values.
///
- public UInt2 BRG
+ public UInt3 BRG
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BRG)}");
set => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BRG)}");
@@ -521,12 +521,12 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public UInt2 BRB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BRB)}");
+ public UInt3 BRB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BRB)}");
///
/// Gets or sets an value with the , and values.
///
- public UInt2 BGR
+ public UInt3 BGR
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BGR)}");
set => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BGR)}");
@@ -535,33 +535,33 @@ namespace ComputeSharp
///
/// Gets an value with the , and values.
///
- public UInt2 BGG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BGG)}");
+ public UInt3 BGG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BGG)}");
///
/// Gets an value with the , and values.
///
- public UInt2 BGB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BGB)}");
+ public UInt3 BGB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BGB)}");
///
/// Gets an value with the , and values.
///
- public UInt2 BBR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BBR)}");
+ public UInt3 BBR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BBR)}");
///
/// Gets an value with the , and values.
///
- public UInt2 BBG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BBG)}");
+ public UInt3 BBG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BBG)}");
///
/// Gets an value with the value for all components.
///
- public UInt2 BBB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BBB)}");
+ public UInt3 BBB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BBB)}");
///
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
- public static implicit operator UInt3(uint x) => new UInt3(x, x, x);
+ public static implicit operator UInt3(uint x) => new(x, x, x);
///
/// Sums two values.
diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt4.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt4.cs
index 1d6f1ba9..6bfbf0fb 100644
--- a/src/ComputeSharp.Core/Primitives/UInt/UInt4.cs
+++ b/src/ComputeSharp.Core/Primitives/UInt/UInt4.cs
@@ -24,22 +24,22 @@ namespace ComputeSharp
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static UInt4 UnitX => new UInt4(1, 0, 0, 0);
+ public static UInt4 UnitX => new(1, 0, 0, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static UInt4 UnitY => new UInt4(0, 1, 0, 0);
+ public static UInt4 UnitY => new(0, 1, 0, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static UInt4 UnitZ => new UInt4(0, 0, 1, 0);
+ public static UInt4 UnitZ => new(0, 0, 1, 0);
///
/// Gets an value with the component set to 1, and the others to 0.
///
- public static UInt4 UnitW => new UInt4(0, 0, 0, 1);
+ public static UInt4 UnitW => new(0, 0, 0, 1);
///
/// Creates a new instance with the specified parameters.
@@ -3966,7 +3966,7 @@ namespace ComputeSharp
/// Creates a new value with the same value for all its components.
///
/// The value to use for the components of the new instance.
- public static implicit operator UInt4(uint x) => new UInt4(x, x, x, x);
+ public static implicit operator UInt4(uint x) => new(x, x, x, x);
///
/// Sums two values.