diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool2.g.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool2.g.cs index c8ceac11..d220fc37 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool2.g.cs @@ -17,6 +17,17 @@ public unsafe partial struct Bool2 [FieldOffset(4)] private int y; + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + public Bool2(bool x, bool y) + { + this.x = x; + this.y = y; + } + /// /// Gets a reference to a specific component in the current instance. /// diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool3.g.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool3.g.cs index ac3320fc..9df378c1 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool3.g.cs @@ -20,6 +20,91 @@ public unsafe partial struct Bool3 [FieldOffset(8)] private int z; + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the third vector component. + public Bool3(bool x, bool y, bool z) + { + this.x = x; + this.y = y; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + public Bool3(Bool2 xy, bool z) + { + this.x = xy.X; + this.y = xy.Y; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + public Bool3(Bool1x2 xy, bool z) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + public Bool3(Bool2x1 xy, bool z) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + public Bool3(bool x, Bool2 yz) + { + this.x = x; + this.y = yz.X; + this.z = yz.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + public Bool3(bool x, Bool1x2 yz) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + public Bool3(bool x, Bool2x1 yz) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M21; + } + /// /// Gets a reference to a specific component in the current instance. /// diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool4.g.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool4.g.cs index 3a3847d4..123994b5 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool4.g.cs @@ -23,6 +23,342 @@ public unsafe partial struct Bool4 [FieldOffset(12)] private int w; + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public Bool4(bool x, bool y, bool z, bool w) + { + this.x = x; + this.y = y; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public Bool4(Bool2 xy, bool z, bool w) + { + this.x = xy.X; + this.y = xy.Y; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public Bool4(Bool1x2 xy, bool z, bool w) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public Bool4(Bool2x1 xy, bool z, bool w) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Bool4(bool x, Bool2 yz, bool w) + { + this.x = x; + this.y = yz.X; + this.z = yz.Y; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Bool4(bool x, Bool1x2 yz, bool w) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M12; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Bool4(bool x, Bool2x1 yz, bool w) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M21; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Bool4(bool x, bool y, Bool2 zw) + { + this.x = x; + this.y = y; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Bool4(bool x, bool y, Bool1x2 zw) + { + this.x = x; + this.y = y; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Bool4(bool x, bool y, Bool2x1 zw) + { + this.x = x; + this.y = y; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Bool4(Bool2 xy, Bool2 zw) + { + this.x = xy.X; + this.y = xy.Y; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Bool4(Bool2 xy, Bool1x2 zw) + { + this.x = xy.X; + this.y = xy.Y; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Bool4(Bool2 xy, Bool2x1 zw) + { + this.x = xy.X; + this.y = xy.Y; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Bool4(Bool1x2 xy, Bool2 zw) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Bool4(Bool1x2 xy, Bool1x2 zw) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Bool4(Bool1x2 xy, Bool2x1 zw) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Bool4(Bool2x1 xy, Bool2 zw) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Bool4(Bool2x1 xy, Bool1x2 zw) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Bool4(Bool2x1 xy, Bool2x1 zw) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Bool4(Bool3 xyz, bool w) + { + this.x = xyz.X; + this.y = xyz.Y; + this.z = xyz.Z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Bool4(Bool1x3 xyz, bool w) + { + this.x = xyz.M11; + this.y = xyz.M12; + this.z = xyz.M13; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Bool4(Bool3x1 xyz, bool w) + { + this.x = xyz.M11; + this.y = xyz.M21; + this.z = xyz.M31; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Bool4(bool x, Bool3 yzw) + { + this.x = x; + this.y = yzw.X; + this.z = yzw.Y; + this.w = yzw.Z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Bool4(bool x, Bool1x3 yzw) + { + this.x = x; + this.y = yzw.M11; + this.z = yzw.M12; + this.w = yzw.M13; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Bool4(bool x, Bool3x1 yzw) + { + this.x = x; + this.y = yzw.M11; + this.z = yzw.M21; + this.w = yzw.M31; + } + /// /// Gets a reference to a specific component in the current instance. /// diff --git a/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs b/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs index 2fcde5cc..b7a75844 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs @@ -19,6 +19,17 @@ public unsafe partial struct Double2 [FieldOffset(8)] private double y; + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + public Double2(double x, double y) + { + this.x = x; + this.y = y; + } + /// /// Gets a reference to a specific component in the current instance. /// diff --git a/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs b/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs index 75fd7e44..db9cd8a7 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs @@ -22,6 +22,91 @@ public unsafe partial struct Double3 [FieldOffset(16)] private double z; + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the third vector component. + public Double3(double x, double y, double z) + { + this.x = x; + this.y = y; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + public Double3(Double2 xy, double z) + { + this.x = xy.X; + this.y = xy.Y; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + public Double3(Double1x2 xy, double z) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + public Double3(Double2x1 xy, double z) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + public Double3(double x, Double2 yz) + { + this.x = x; + this.y = yz.X; + this.z = yz.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + public Double3(double x, Double1x2 yz) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + public Double3(double x, Double2x1 yz) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M21; + } + /// /// Gets a reference to a specific component in the current instance. /// diff --git a/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs b/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs index a97379ee..fc0ce97c 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs @@ -25,6 +25,342 @@ public unsafe partial struct Double4 [FieldOffset(24)] private double w; + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public Double4(double x, double y, double z, double w) + { + this.x = x; + this.y = y; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public Double4(Double2 xy, double z, double w) + { + this.x = xy.X; + this.y = xy.Y; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public Double4(Double1x2 xy, double z, double w) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public Double4(Double2x1 xy, double z, double w) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Double4(double x, Double2 yz, double w) + { + this.x = x; + this.y = yz.X; + this.z = yz.Y; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Double4(double x, Double1x2 yz, double w) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M12; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Double4(double x, Double2x1 yz, double w) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M21; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Double4(double x, double y, Double2 zw) + { + this.x = x; + this.y = y; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Double4(double x, double y, Double1x2 zw) + { + this.x = x; + this.y = y; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Double4(double x, double y, Double2x1 zw) + { + this.x = x; + this.y = y; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Double4(Double2 xy, Double2 zw) + { + this.x = xy.X; + this.y = xy.Y; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Double4(Double2 xy, Double1x2 zw) + { + this.x = xy.X; + this.y = xy.Y; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Double4(Double2 xy, Double2x1 zw) + { + this.x = xy.X; + this.y = xy.Y; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Double4(Double1x2 xy, Double2 zw) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Double4(Double1x2 xy, Double1x2 zw) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Double4(Double1x2 xy, Double2x1 zw) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Double4(Double2x1 xy, Double2 zw) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Double4(Double2x1 xy, Double1x2 zw) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Double4(Double2x1 xy, Double2x1 zw) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Double4(Double3 xyz, double w) + { + this.x = xyz.X; + this.y = xyz.Y; + this.z = xyz.Z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Double4(Double1x3 xyz, double w) + { + this.x = xyz.M11; + this.y = xyz.M12; + this.z = xyz.M13; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Double4(Double3x1 xyz, double w) + { + this.x = xyz.M11; + this.y = xyz.M21; + this.z = xyz.M31; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Double4(double x, Double3 yzw) + { + this.x = x; + this.y = yzw.X; + this.z = yzw.Y; + this.w = yzw.Z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Double4(double x, Double1x3 yzw) + { + this.x = x; + this.y = yzw.M11; + this.z = yzw.M12; + this.w = yzw.M13; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Double4(double x, Double3x1 yzw) + { + this.x = x; + this.y = yzw.M11; + this.z = yzw.M21; + this.w = yzw.M31; + } + /// /// Gets a reference to a specific component in the current instance. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs index 91717962..08380d2d 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs @@ -20,6 +20,17 @@ public unsafe partial struct Float2 [FieldOffset(4)] private float y; + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + public Float2(float x, float y) + { + this.x = x; + this.y = y; + } + /// /// Gets a reference to a specific component in the current instance. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs index 57148377..25b352ab 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs @@ -23,6 +23,91 @@ public unsafe partial struct Float3 [FieldOffset(8)] private float z; + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the third vector component. + public Float3(float x, float y, float z) + { + this.x = x; + this.y = y; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + public Float3(Float2 xy, float z) + { + this.x = xy.X; + this.y = xy.Y; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + public Float3(Float1x2 xy, float z) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + public Float3(Float2x1 xy, float z) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + public Float3(float x, Float2 yz) + { + this.x = x; + this.y = yz.X; + this.z = yz.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + public Float3(float x, Float1x2 yz) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + public Float3(float x, Float2x1 yz) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M21; + } + /// /// Gets a reference to a specific component in the current instance. /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs index b698a2e0..f13a02ca 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs @@ -26,6 +26,342 @@ public unsafe partial struct Float4 [FieldOffset(12)] private float w; + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public Float4(float x, float y, float z, float w) + { + this.x = x; + this.y = y; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public Float4(Float2 xy, float z, float w) + { + this.x = xy.X; + this.y = xy.Y; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public Float4(Float1x2 xy, float z, float w) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public Float4(Float2x1 xy, float z, float w) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Float4(float x, Float2 yz, float w) + { + this.x = x; + this.y = yz.X; + this.z = yz.Y; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Float4(float x, Float1x2 yz, float w) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M12; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Float4(float x, Float2x1 yz, float w) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M21; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Float4(float x, float y, Float2 zw) + { + this.x = x; + this.y = y; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Float4(float x, float y, Float1x2 zw) + { + this.x = x; + this.y = y; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Float4(float x, float y, Float2x1 zw) + { + this.x = x; + this.y = y; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Float4(Float2 xy, Float2 zw) + { + this.x = xy.X; + this.y = xy.Y; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Float4(Float2 xy, Float1x2 zw) + { + this.x = xy.X; + this.y = xy.Y; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Float4(Float2 xy, Float2x1 zw) + { + this.x = xy.X; + this.y = xy.Y; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Float4(Float1x2 xy, Float2 zw) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Float4(Float1x2 xy, Float1x2 zw) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Float4(Float1x2 xy, Float2x1 zw) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Float4(Float2x1 xy, Float2 zw) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Float4(Float2x1 xy, Float1x2 zw) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Float4(Float2x1 xy, Float2x1 zw) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Float4(Float3 xyz, float w) + { + this.x = xyz.X; + this.y = xyz.Y; + this.z = xyz.Z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Float4(Float1x3 xyz, float w) + { + this.x = xyz.M11; + this.y = xyz.M12; + this.z = xyz.M13; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Float4(Float3x1 xyz, float w) + { + this.x = xyz.M11; + this.y = xyz.M21; + this.z = xyz.M31; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Float4(float x, Float3 yzw) + { + this.x = x; + this.y = yzw.X; + this.z = yzw.Y; + this.w = yzw.Z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Float4(float x, Float1x3 yzw) + { + this.x = x; + this.y = yzw.M11; + this.z = yzw.M12; + this.w = yzw.M13; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Float4(float x, Float3x1 yzw) + { + this.x = x; + this.y = yzw.M11; + this.z = yzw.M21; + this.w = yzw.M31; + } + /// /// Gets a reference to a specific component in the current instance. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs index ed18fa99..16cece54 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs @@ -20,6 +20,17 @@ public unsafe partial struct Int2 [FieldOffset(4)] private int y; + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + public Int2(int x, int y) + { + this.x = x; + this.y = y; + } + /// /// Gets a reference to a specific component in the current instance. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs index c09a6c0a..006349f4 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs @@ -23,6 +23,91 @@ public unsafe partial struct Int3 [FieldOffset(8)] private int z; + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the third vector component. + public Int3(int x, int y, int z) + { + this.x = x; + this.y = y; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + public Int3(Int2 xy, int z) + { + this.x = xy.X; + this.y = xy.Y; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + public Int3(Int1x2 xy, int z) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + public Int3(Int2x1 xy, int z) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + public Int3(int x, Int2 yz) + { + this.x = x; + this.y = yz.X; + this.z = yz.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + public Int3(int x, Int1x2 yz) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + public Int3(int x, Int2x1 yz) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M21; + } + /// /// Gets a reference to a specific component in the current instance. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs index 4ffe67a3..495fda2e 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs @@ -26,6 +26,342 @@ public unsafe partial struct Int4 [FieldOffset(12)] private int w; + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public Int4(int x, int y, int z, int w) + { + this.x = x; + this.y = y; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public Int4(Int2 xy, int z, int w) + { + this.x = xy.X; + this.y = xy.Y; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public Int4(Int1x2 xy, int z, int w) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public Int4(Int2x1 xy, int z, int w) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Int4(int x, Int2 yz, int w) + { + this.x = x; + this.y = yz.X; + this.z = yz.Y; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Int4(int x, Int1x2 yz, int w) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M12; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Int4(int x, Int2x1 yz, int w) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M21; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Int4(int x, int y, Int2 zw) + { + this.x = x; + this.y = y; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Int4(int x, int y, Int1x2 zw) + { + this.x = x; + this.y = y; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Int4(int x, int y, Int2x1 zw) + { + this.x = x; + this.y = y; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Int4(Int2 xy, Int2 zw) + { + this.x = xy.X; + this.y = xy.Y; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Int4(Int2 xy, Int1x2 zw) + { + this.x = xy.X; + this.y = xy.Y; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Int4(Int2 xy, Int2x1 zw) + { + this.x = xy.X; + this.y = xy.Y; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Int4(Int1x2 xy, Int2 zw) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Int4(Int1x2 xy, Int1x2 zw) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Int4(Int1x2 xy, Int2x1 zw) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Int4(Int2x1 xy, Int2 zw) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Int4(Int2x1 xy, Int1x2 zw) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public Int4(Int2x1 xy, Int2x1 zw) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Int4(Int3 xyz, int w) + { + this.x = xyz.X; + this.y = xyz.Y; + this.z = xyz.Z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Int4(Int1x3 xyz, int w) + { + this.x = xyz.M11; + this.y = xyz.M12; + this.z = xyz.M13; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public Int4(Int3x1 xyz, int w) + { + this.x = xyz.M11; + this.y = xyz.M21; + this.z = xyz.M31; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Int4(int x, Int3 yzw) + { + this.x = x; + this.y = yzw.X; + this.z = yzw.Y; + this.w = yzw.Z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Int4(int x, Int1x3 yzw) + { + this.x = x; + this.y = yzw.M11; + this.z = yzw.M12; + this.w = yzw.M13; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second, third and fourth vector components. + public Int4(int x, Int3x1 yzw) + { + this.x = x; + this.y = yzw.M11; + this.z = yzw.M21; + this.w = yzw.M31; + } + /// /// Gets a reference to a specific component in the current instance. /// diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs index d75113ff..1bfbd471 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs @@ -19,6 +19,17 @@ public unsafe partial struct UInt2 [FieldOffset(4)] private uint y; + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + public UInt2(uint x, uint y) + { + this.x = x; + this.y = y; + } + /// /// Gets a reference to a specific component in the current instance. /// diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs index 7a95ab50..7f14246a 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs @@ -22,6 +22,91 @@ public unsafe partial struct UInt3 [FieldOffset(8)] private uint z; + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the third vector component. + public UInt3(uint x, uint y, uint z) + { + this.x = x; + this.y = y; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + public UInt3(UInt2 xy, uint z) + { + this.x = xy.X; + this.y = xy.Y; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + public UInt3(UInt1x2 xy, uint z) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + public UInt3(UInt2x1 xy, uint z) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + public UInt3(uint x, UInt2 yz) + { + this.x = x; + this.y = yz.X; + this.z = yz.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + public UInt3(uint x, UInt1x2 yz) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + public UInt3(uint x, UInt2x1 yz) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M21; + } + /// /// Gets a reference to a specific component in the current instance. /// diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs index 81a24dc4..7f2ac00b 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs @@ -25,6 +25,342 @@ public unsafe partial struct UInt4 [FieldOffset(12)] private uint w; + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public UInt4(uint x, uint y, uint z, uint w) + { + this.x = x; + this.y = y; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public UInt4(UInt2 xy, uint z, uint w) + { + this.x = xy.X; + this.y = xy.Y; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public UInt4(UInt1x2 xy, uint z, uint w) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the third vector component. + /// The value to assign to the fourth vector component. + public UInt4(UInt2x1 xy, uint z, uint w) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public UInt4(uint x, UInt2 yz, uint w) + { + this.x = x; + this.y = yz.X; + this.z = yz.Y; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public UInt4(uint x, UInt1x2 yz, uint w) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M12; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public UInt4(uint x, UInt2x1 yz, uint w) + { + this.x = x; + this.y = yz.M11; + this.z = yz.M21; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the first, second, third and fourth vector components. + public UInt4(uint x, uint y, UInt2 zw) + { + this.x = x; + this.y = y; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the first, second, third and fourth vector components. + public UInt4(uint x, uint y, UInt1x2 zw) + { + this.x = x; + this.y = y; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the second vector component. + /// The value to assign to the first, second, third and fourth vector components. + public UInt4(uint x, uint y, UInt2x1 zw) + { + this.x = x; + this.y = y; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public UInt4(UInt2 xy, UInt2 zw) + { + this.x = xy.X; + this.y = xy.Y; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public UInt4(UInt2 xy, UInt1x2 zw) + { + this.x = xy.X; + this.y = xy.Y; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public UInt4(UInt2 xy, UInt2x1 zw) + { + this.x = xy.X; + this.y = xy.Y; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public UInt4(UInt1x2 xy, UInt2 zw) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public UInt4(UInt1x2 xy, UInt1x2 zw) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public UInt4(UInt1x2 xy, UInt2x1 zw) + { + this.x = xy.M11; + this.y = xy.M12; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public UInt4(UInt2x1 xy, UInt2 zw) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = zw.X; + this.w = zw.Y; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public UInt4(UInt2x1 xy, UInt1x2 zw) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = zw.M11; + this.w = zw.M12; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first and second vector components. + /// The value to assign to the first, second, third and fourth vector components. + public UInt4(UInt2x1 xy, UInt2x1 zw) + { + this.x = xy.M11; + this.y = xy.M21; + this.z = zw.M11; + this.w = zw.M21; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public UInt4(UInt3 xyz, uint w) + { + this.x = xyz.X; + this.y = xyz.Y; + this.z = xyz.Z; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public UInt4(UInt1x3 xyz, uint w) + { + this.x = xyz.M11; + this.y = xyz.M12; + this.z = xyz.M13; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first, second and third vector components. + /// The value to assign to the fourth vector component. + public UInt4(UInt3x1 xyz, uint w) + { + this.x = xyz.M11; + this.y = xyz.M21; + this.z = xyz.M31; + this.w = w; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second, third and fourth vector components. + public UInt4(uint x, UInt3 yzw) + { + this.x = x; + this.y = yzw.X; + this.z = yzw.Y; + this.w = yzw.Z; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second, third and fourth vector components. + public UInt4(uint x, UInt1x3 yzw) + { + this.x = x; + this.y = yzw.M11; + this.z = yzw.M12; + this.w = yzw.M13; + } + + /// + /// Creates a new instance with the specified parameters. + /// + /// The value to assign to the first vector component. + /// The value to assign to the first, second, third and fourth vector components. + public UInt4(uint x, UInt3x1 yzw) + { + this.x = x; + this.y = yzw.M11; + this.z = yzw.M21; + this.w = yzw.M31; + } + /// /// Gets a reference to a specific component in the current instance. ///