From 34afa9a37d1d8c39dbb1dd8796d52a2e8e751df7 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 24 Apr 2022 22:54:47 +0200 Subject: [PATCH] Add new HLSL >, >=, <, <=, ==, !=, % operators --- .../Primitives/Bool/Bool2.cs | 4 +- .../Primitives/Bool/Bool2.g.cs | 20 + .../Primitives/Bool/Bool3.cs | 4 +- .../Primitives/Bool/Bool3.g.cs | 20 + .../Primitives/Bool/Bool4.cs | 4 +- .../Primitives/Bool/Bool4.g.cs | 20 + .../Primitives/Bool/BoolMxN.g.cs | 290 +++++ .../Primitives/Double/Double2.cs | 4 +- .../Primitives/Double/Double2.g.cs | 69 ++ .../Primitives/Double/Double3.cs | 4 +- .../Primitives/Double/Double3.g.cs | 69 ++ .../Primitives/Double/Double4.cs | 4 +- .../Primitives/Double/Double4.g.cs | 69 ++ .../Primitives/Double/DoubleMxN.g.cs | 1074 +++++++++++++++++ .../Primitives/Float/Float2.cs | 2 + .../Primitives/Float/Float2.g.cs | 69 ++ .../Primitives/Float/Float3.cs | 2 + .../Primitives/Float/Float3.g.cs | 69 ++ .../Primitives/Float/Float4.cs | 2 + .../Primitives/Float/Float4.g.cs | 69 ++ .../Primitives/Float/FloatMxN.g.cs | 1074 +++++++++++++++++ src/ComputeSharp.Core/Primitives/Int/Int2.cs | 4 +- .../Primitives/Int/Int2.g.cs | 69 ++ src/ComputeSharp.Core/Primitives/Int/Int3.cs | 4 +- .../Primitives/Int/Int3.g.cs | 69 ++ src/ComputeSharp.Core/Primitives/Int/Int4.cs | 4 +- .../Primitives/Int/Int4.g.cs | 69 ++ .../Primitives/Int/IntMxN.g.cs | 1074 +++++++++++++++++ .../Primitives/MatrixType.ttinclude | 71 ++ .../Primitives/UInt/UInt2.cs | 4 +- .../Primitives/UInt/UInt2.g.cs | 68 ++ .../Primitives/UInt/UInt3.cs | 4 +- .../Primitives/UInt/UInt3.g.cs | 68 ++ .../Primitives/UInt/UInt4.cs | 4 +- .../Primitives/UInt/UInt4.g.cs | 68 ++ .../Primitives/UInt/UIntMxN.g.cs | 1074 +++++++++++++++++ .../Primitives/VectorType.ttinclude | 72 ++ 37 files changed, 5656 insertions(+), 12 deletions(-) diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool2.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool2.cs index 9443d50e..b9305ab0 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool2.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool2.cs @@ -1,4 +1,6 @@ -namespace ComputeSharp; +#pragma warning disable CS0660, CS0661 + +namespace ComputeSharp; /// /// A that maps the HLSL type. diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool2.g.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool2.g.cs index 86158121..75399fac 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool2.g.cs @@ -6,6 +6,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic #endif #nullable enable +#pragma warning disable CS0660, CS0661 namespace ComputeSharp; @@ -405,6 +406,25 @@ public unsafe partial struct Bool2 /// Negates a value. /// /// The value to negate. + /// The negated value of . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool2 operator !(Bool2 xy) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator ==(Bool2 left, Bool2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator !=(Bool2 left, Bool2 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool3.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool3.cs index 466aeebc..34cdffc1 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool3.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool3.cs @@ -1,4 +1,6 @@ -namespace ComputeSharp; +#pragma warning disable CS0660, CS0661 + +namespace ComputeSharp; /// /// A that maps the HLSL type. diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool3.g.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool3.g.cs index 018577c6..87322361 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool3.g.cs @@ -6,6 +6,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic #endif #nullable enable +#pragma warning disable CS0660, CS0661 namespace ComputeSharp; @@ -1486,6 +1487,25 @@ public unsafe partial struct Bool3 /// Negates a value. /// /// The value to negate. + /// The negated value of . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool3 operator !(Bool3 xyz) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator ==(Bool3 left, Bool3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator !=(Bool3 left, Bool3 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool4.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool4.cs index 59b34881..fcf9f11a 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool4.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool4.cs @@ -1,4 +1,6 @@ -namespace ComputeSharp; +#pragma warning disable CS0660, CS0661 + +namespace ComputeSharp; /// /// A that maps the HLSL type. diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool4.g.cs b/src/ComputeSharp.Core/Primitives/Bool/Bool4.g.cs index 175339be..c7728eb3 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/Bool4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/Bool4.g.cs @@ -6,6 +6,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic #endif #nullable enable +#pragma warning disable CS0660, CS0661 namespace ComputeSharp; @@ -4127,6 +4128,25 @@ public unsafe partial struct Bool4 /// Negates a value. /// /// The value to negate. + /// The negated value of . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool4 operator !(Bool4 xyzw) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator ==(Bool4 left, Bool4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator !=(Bool4 left, Bool4 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/Bool/BoolMxN.g.cs b/src/ComputeSharp.Core/Primitives/Bool/BoolMxN.g.cs index 3925f701..e6160738 100644 --- a/src/ComputeSharp.Core/Primitives/Bool/BoolMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Bool/BoolMxN.g.cs @@ -5,6 +5,8 @@ using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif +#pragma warning disable CS0660, CS0661 + namespace ComputeSharp; /// @@ -86,6 +88,24 @@ public unsafe partial struct Bool1x1 /// The value to negate. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool1x1 operator !(Bool1x1 matrix) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator ==(Bool1x1 left, Bool1x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator !=(Bool1x1 left, Bool1x1 right) => default; } /// @@ -179,6 +199,24 @@ public unsafe partial struct Bool1x2 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool1x2 operator !(Bool1x2 matrix) => default; + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator ==(Bool1x2 left, Bool1x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator !=(Bool1x2 left, Bool1x2 right) => default; + /// /// Casts a value to a one. /// @@ -288,6 +326,24 @@ public unsafe partial struct Bool1x3 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool1x3 operator !(Bool1x3 matrix) => default; + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator ==(Bool1x3 left, Bool1x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator !=(Bool1x3 left, Bool1x3 right) => default; + /// /// Casts a value to a one. /// @@ -408,6 +464,24 @@ public unsafe partial struct Bool1x4 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool1x4 operator !(Bool1x4 matrix) => default; + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator ==(Bool1x4 left, Bool1x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator !=(Bool1x4 left, Bool1x4 right) => default; + /// /// Casts a value to a one. /// @@ -506,6 +580,24 @@ public unsafe partial struct Bool2x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool2x1 operator !(Bool2x1 matrix) => default; + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator ==(Bool2x1 left, Bool2x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator !=(Bool2x1 left, Bool2x1 right) => default; + /// /// Casts a value to a one. /// @@ -638,6 +730,24 @@ public unsafe partial struct Bool2x2 /// The value to negate. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool2x2 operator !(Bool2x2 matrix) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator ==(Bool2x2 left, Bool2x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator !=(Bool2x2 left, Bool2x2 right) => default; } /// @@ -789,6 +899,24 @@ public unsafe partial struct Bool2x3 /// The value to negate. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool2x3 operator !(Bool2x3 matrix) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator ==(Bool2x3 left, Bool2x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator !=(Bool2x3 left, Bool2x3 right) => default; } /// @@ -964,6 +1092,24 @@ public unsafe partial struct Bool2x4 /// The value to negate. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool2x4 operator !(Bool2x4 matrix) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator ==(Bool2x4 left, Bool2x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator !=(Bool2x4 left, Bool2x4 right) => default; } /// @@ -1068,6 +1214,24 @@ public unsafe partial struct Bool3x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool3x1 operator !(Bool3x1 matrix) => default; + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator ==(Bool3x1 left, Bool3x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator !=(Bool3x1 left, Bool3x1 right) => default; + /// /// Casts a value to a one. /// @@ -1225,6 +1389,24 @@ public unsafe partial struct Bool3x2 /// The value to negate. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool3x2 operator !(Bool3x2 matrix) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator ==(Bool3x2 left, Bool3x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator !=(Bool3x2 left, Bool3x2 right) => default; } /// @@ -1413,6 +1595,24 @@ public unsafe partial struct Bool3x3 /// The value to negate. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool3x3 operator !(Bool3x3 matrix) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator ==(Bool3x3 left, Bool3x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator !=(Bool3x3 left, Bool3x3 right) => default; } /// @@ -1637,6 +1837,24 @@ public unsafe partial struct Bool3x4 /// The value to negate. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool3x4 operator !(Bool3x4 matrix) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator ==(Bool3x4 left, Bool3x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator !=(Bool3x4 left, Bool3x4 right) => default; } /// @@ -1752,6 +1970,24 @@ public unsafe partial struct Bool4x1 /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool4x1 operator !(Bool4x1 matrix) => default; + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator ==(Bool4x1 left, Bool4x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator !=(Bool4x1 left, Bool4x1 right) => default; + /// /// Casts a value to a one. /// @@ -1934,6 +2170,24 @@ public unsafe partial struct Bool4x2 /// The value to negate. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool4x2 operator !(Bool4x2 matrix) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator ==(Bool4x2 left, Bool4x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator !=(Bool4x2 left, Bool4x2 right) => default; } /// @@ -2159,6 +2413,24 @@ public unsafe partial struct Bool4x3 /// The value to negate. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool4x3 operator !(Bool4x3 matrix) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator ==(Bool4x3 left, Bool4x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator !=(Bool4x3 left, Bool4x3 right) => default; } /// @@ -2432,4 +2704,22 @@ public unsafe partial struct Bool4x4 /// The value to negate. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool4x4 operator !(Bool4x4 matrix) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator ==(Bool4x4 left, Bool4x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator !=(Bool4x4 left, Bool4x4 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/Double/Double2.cs b/src/ComputeSharp.Core/Primitives/Double/Double2.cs index 342b7c1d..e43f3e40 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double2.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double2.cs @@ -1,4 +1,6 @@ -namespace ComputeSharp; +#pragma warning disable CS0660, CS0661 + +namespace ComputeSharp; /// /// A that maps the HLSL type. diff --git a/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs b/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs index 86c06ce4..0717e604 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double2.g.cs @@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic #endif #nullable enable +#pragma warning disable CS0660, CS0661 namespace ComputeSharp; @@ -437,6 +438,7 @@ public unsafe partial struct Double2 /// Negates a value. /// /// The value to negate. + /// The negated value of . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2 operator -(Double2 xy) => default; @@ -445,6 +447,7 @@ public unsafe partial struct Double2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2 operator +(Double2 left, Double2 right) => default; @@ -453,14 +456,25 @@ public unsafe partial struct Double2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2 operator /(Double2 left, Double2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double2 operator %(Double2 left, Double2 right) => default; + /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2 operator *(Double2 left, Double2 right) => default; @@ -469,6 +483,61 @@ public unsafe partial struct Double2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2 operator -(Double2 left, Double2 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator >(Double2 left, Double2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator >=(Double2 left, Double2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator <(Double2 left, Double2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator <=(Double2 left, Double2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator ==(Double2 left, Double2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator !=(Double2 left, Double2 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/Double/Double3.cs b/src/ComputeSharp.Core/Primitives/Double/Double3.cs index 6a461641..326a25f5 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double3.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double3.cs @@ -1,4 +1,6 @@ -namespace ComputeSharp; +#pragma warning disable CS0660, CS0661 + +namespace ComputeSharp; /// /// A that maps the HLSL type. diff --git a/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs b/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs index 6bad3710..42662832 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double3.g.cs @@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic #endif #nullable enable +#pragma warning disable CS0660, CS0661 namespace ComputeSharp; @@ -1518,6 +1519,7 @@ public unsafe partial struct Double3 /// Negates a value. /// /// The value to negate. + /// The negated value of . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3 operator -(Double3 xyz) => default; @@ -1526,6 +1528,7 @@ public unsafe partial struct Double3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3 operator +(Double3 left, Double3 right) => default; @@ -1534,14 +1537,25 @@ public unsafe partial struct Double3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3 operator /(Double3 left, Double3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double3 operator %(Double3 left, Double3 right) => default; + /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3 operator *(Double3 left, Double3 right) => default; @@ -1550,6 +1564,61 @@ public unsafe partial struct Double3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3 operator -(Double3 left, Double3 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator >(Double3 left, Double3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator >=(Double3 left, Double3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator <(Double3 left, Double3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator <=(Double3 left, Double3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator ==(Double3 left, Double3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator !=(Double3 left, Double3 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/Double/Double4.cs b/src/ComputeSharp.Core/Primitives/Double/Double4.cs index b3432b0d..634dc47a 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double4.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double4.cs @@ -1,4 +1,6 @@ -namespace ComputeSharp; +#pragma warning disable CS0660, CS0661 + +namespace ComputeSharp; /// /// A that maps the HLSL type. diff --git a/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs b/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs index 47a8035a..edbb0676 100644 --- a/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/Double4.g.cs @@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic #endif #nullable enable +#pragma warning disable CS0660, CS0661 namespace ComputeSharp; @@ -4159,6 +4160,7 @@ public unsafe partial struct Double4 /// Negates a value. /// /// The value to negate. + /// The negated value of . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4 operator -(Double4 xyzw) => default; @@ -4167,6 +4169,7 @@ public unsafe partial struct Double4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4 operator +(Double4 left, Double4 right) => default; @@ -4175,14 +4178,25 @@ public unsafe partial struct Double4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4 operator /(Double4 left, Double4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double4 operator %(Double4 left, Double4 right) => default; + /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4 operator *(Double4 left, Double4 right) => default; @@ -4191,6 +4205,61 @@ public unsafe partial struct Double4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4 operator -(Double4 left, Double4 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator >(Double4 left, Double4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator >=(Double4 left, Double4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator <(Double4 left, Double4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator <=(Double4 left, Double4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator ==(Double4 left, Double4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator !=(Double4 left, Double4 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/Double/DoubleMxN.g.cs b/src/ComputeSharp.Core/Primitives/Double/DoubleMxN.g.cs index 0090b66a..5344d2de 100644 --- a/src/ComputeSharp.Core/Primitives/Double/DoubleMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Double/DoubleMxN.g.cs @@ -5,6 +5,8 @@ using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif +#pragma warning disable CS0660, CS0661 + namespace ComputeSharp; /// @@ -92,6 +94,7 @@ public unsafe partial struct Double1x1 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double1x1 operator +(Double1x1 left, Double1x1 right) => default; @@ -100,14 +103,25 @@ public unsafe partial struct Double1x1 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double1x1 operator /(Double1x1 left, Double1x1 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double1x1 operator %(Double1x1 left, Double1x1 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double1x1 operator *(Double1x1 left, Double1x1 right) => default; @@ -116,8 +130,63 @@ public unsafe partial struct Double1x1 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double1x1 operator -(Double1x1 left, Double1x1 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator >(Double1x1 left, Double1x1 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator >=(Double1x1 left, Double1x1 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator <(Double1x1 left, Double1x1 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator <=(Double1x1 left, Double1x1 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator ==(Double1x1 left, Double1x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator !=(Double1x1 left, Double1x1 right) => default; } /// @@ -216,6 +285,7 @@ public unsafe partial struct Double1x2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double1x2 operator +(Double1x2 left, Double1x2 right) => default; @@ -224,14 +294,25 @@ public unsafe partial struct Double1x2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double1x2 operator /(Double1x2 left, Double1x2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double1x2 operator %(Double1x2 left, Double1x2 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double1x2 operator *(Double1x2 left, Double1x2 right) => default; @@ -240,9 +321,64 @@ public unsafe partial struct Double1x2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double1x2 operator -(Double1x2 left, Double1x2 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator >(Double1x2 left, Double1x2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator >=(Double1x2 left, Double1x2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator <(Double1x2 left, Double1x2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator <=(Double1x2 left, Double1x2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator ==(Double1x2 left, Double1x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator !=(Double1x2 left, Double1x2 right) => default; + /// /// Casts a value to a one. /// @@ -357,6 +493,7 @@ public unsafe partial struct Double1x3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double1x3 operator +(Double1x3 left, Double1x3 right) => default; @@ -365,14 +502,25 @@ public unsafe partial struct Double1x3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double1x3 operator /(Double1x3 left, Double1x3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double1x3 operator %(Double1x3 left, Double1x3 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double1x3 operator *(Double1x3 left, Double1x3 right) => default; @@ -381,9 +529,64 @@ public unsafe partial struct Double1x3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double1x3 operator -(Double1x3 left, Double1x3 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator >(Double1x3 left, Double1x3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator >=(Double1x3 left, Double1x3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator <(Double1x3 left, Double1x3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator <=(Double1x3 left, Double1x3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator ==(Double1x3 left, Double1x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator !=(Double1x3 left, Double1x3 right) => default; + /// /// Casts a value to a one. /// @@ -509,6 +712,7 @@ public unsafe partial struct Double1x4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double1x4 operator +(Double1x4 left, Double1x4 right) => default; @@ -517,14 +721,25 @@ public unsafe partial struct Double1x4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double1x4 operator /(Double1x4 left, Double1x4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double1x4 operator %(Double1x4 left, Double1x4 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double1x4 operator *(Double1x4 left, Double1x4 right) => default; @@ -533,9 +748,64 @@ public unsafe partial struct Double1x4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double1x4 operator -(Double1x4 left, Double1x4 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator >(Double1x4 left, Double1x4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator >=(Double1x4 left, Double1x4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator <(Double1x4 left, Double1x4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator <=(Double1x4 left, Double1x4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator ==(Double1x4 left, Double1x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator !=(Double1x4 left, Double1x4 right) => default; + /// /// Casts a value to a one. /// @@ -639,6 +909,7 @@ public unsafe partial struct Double2x1 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2x1 operator +(Double2x1 left, Double2x1 right) => default; @@ -647,14 +918,25 @@ public unsafe partial struct Double2x1 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2x1 operator /(Double2x1 left, Double2x1 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double2x1 operator %(Double2x1 left, Double2x1 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2x1 operator *(Double2x1 left, Double2x1 right) => default; @@ -663,9 +945,64 @@ public unsafe partial struct Double2x1 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2x1 operator -(Double2x1 left, Double2x1 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator >(Double2x1 left, Double2x1 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator >=(Double2x1 left, Double2x1 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator <(Double2x1 left, Double2x1 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator <=(Double2x1 left, Double2x1 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator ==(Double2x1 left, Double2x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator !=(Double2x1 left, Double2x1 right) => default; + /// /// Casts a value to a one. /// @@ -804,6 +1141,7 @@ public unsafe partial struct Double2x2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2x2 operator +(Double2x2 left, Double2x2 right) => default; @@ -812,14 +1150,25 @@ public unsafe partial struct Double2x2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2x2 operator /(Double2x2 left, Double2x2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double2x2 operator %(Double2x2 left, Double2x2 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2x2 operator *(Double2x2 left, Double2x2 right) => default; @@ -828,8 +1177,63 @@ public unsafe partial struct Double2x2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2x2 operator -(Double2x2 left, Double2x2 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator >(Double2x2 left, Double2x2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator >=(Double2x2 left, Double2x2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator <(Double2x2 left, Double2x2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator <=(Double2x2 left, Double2x2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator ==(Double2x2 left, Double2x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator !=(Double2x2 left, Double2x2 right) => default; } /// @@ -987,6 +1391,7 @@ public unsafe partial struct Double2x3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2x3 operator +(Double2x3 left, Double2x3 right) => default; @@ -995,14 +1400,25 @@ public unsafe partial struct Double2x3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2x3 operator /(Double2x3 left, Double2x3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double2x3 operator %(Double2x3 left, Double2x3 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2x3 operator *(Double2x3 left, Double2x3 right) => default; @@ -1011,8 +1427,63 @@ public unsafe partial struct Double2x3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2x3 operator -(Double2x3 left, Double2x3 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator >(Double2x3 left, Double2x3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator >=(Double2x3 left, Double2x3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator <(Double2x3 left, Double2x3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator <=(Double2x3 left, Double2x3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator ==(Double2x3 left, Double2x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator !=(Double2x3 left, Double2x3 right) => default; } /// @@ -1194,6 +1665,7 @@ public unsafe partial struct Double2x4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2x4 operator +(Double2x4 left, Double2x4 right) => default; @@ -1202,14 +1674,25 @@ public unsafe partial struct Double2x4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2x4 operator /(Double2x4 left, Double2x4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double2x4 operator %(Double2x4 left, Double2x4 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2x4 operator *(Double2x4 left, Double2x4 right) => default; @@ -1218,8 +1701,63 @@ public unsafe partial struct Double2x4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double2x4 operator -(Double2x4 left, Double2x4 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator >(Double2x4 left, Double2x4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator >=(Double2x4 left, Double2x4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator <(Double2x4 left, Double2x4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator <=(Double2x4 left, Double2x4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator ==(Double2x4 left, Double2x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator !=(Double2x4 left, Double2x4 right) => default; } /// @@ -1329,6 +1867,7 @@ public unsafe partial struct Double3x1 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3x1 operator +(Double3x1 left, Double3x1 right) => default; @@ -1337,14 +1876,25 @@ public unsafe partial struct Double3x1 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3x1 operator /(Double3x1 left, Double3x1 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double3x1 operator %(Double3x1 left, Double3x1 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3x1 operator *(Double3x1 left, Double3x1 right) => default; @@ -1353,9 +1903,64 @@ public unsafe partial struct Double3x1 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3x1 operator -(Double3x1 left, Double3x1 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator >(Double3x1 left, Double3x1 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator >=(Double3x1 left, Double3x1 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator <(Double3x1 left, Double3x1 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator <=(Double3x1 left, Double3x1 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator ==(Double3x1 left, Double3x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator !=(Double3x1 left, Double3x1 right) => default; + /// /// Casts a value to a one. /// @@ -1519,6 +2124,7 @@ public unsafe partial struct Double3x2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3x2 operator +(Double3x2 left, Double3x2 right) => default; @@ -1527,14 +2133,25 @@ public unsafe partial struct Double3x2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3x2 operator /(Double3x2 left, Double3x2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double3x2 operator %(Double3x2 left, Double3x2 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3x2 operator *(Double3x2 left, Double3x2 right) => default; @@ -1543,8 +2160,63 @@ public unsafe partial struct Double3x2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3x2 operator -(Double3x2 left, Double3x2 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator >(Double3x2 left, Double3x2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator >=(Double3x2 left, Double3x2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator <(Double3x2 left, Double3x2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator <=(Double3x2 left, Double3x2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator ==(Double3x2 left, Double3x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator !=(Double3x2 left, Double3x2 right) => default; } /// @@ -1739,6 +2411,7 @@ public unsafe partial struct Double3x3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3x3 operator +(Double3x3 left, Double3x3 right) => default; @@ -1747,14 +2420,25 @@ public unsafe partial struct Double3x3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3x3 operator /(Double3x3 left, Double3x3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double3x3 operator %(Double3x3 left, Double3x3 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3x3 operator *(Double3x3 left, Double3x3 right) => default; @@ -1763,8 +2447,63 @@ public unsafe partial struct Double3x3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3x3 operator -(Double3x3 left, Double3x3 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator >(Double3x3 left, Double3x3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator >=(Double3x3 left, Double3x3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator <(Double3x3 left, Double3x3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator <=(Double3x3 left, Double3x3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator ==(Double3x3 left, Double3x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator !=(Double3x3 left, Double3x3 right) => default; } /// @@ -1995,6 +2734,7 @@ public unsafe partial struct Double3x4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3x4 operator +(Double3x4 left, Double3x4 right) => default; @@ -2003,14 +2743,25 @@ public unsafe partial struct Double3x4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3x4 operator /(Double3x4 left, Double3x4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double3x4 operator %(Double3x4 left, Double3x4 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3x4 operator *(Double3x4 left, Double3x4 right) => default; @@ -2019,8 +2770,63 @@ public unsafe partial struct Double3x4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double3x4 operator -(Double3x4 left, Double3x4 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator >(Double3x4 left, Double3x4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator >=(Double3x4 left, Double3x4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator <(Double3x4 left, Double3x4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator <=(Double3x4 left, Double3x4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator ==(Double3x4 left, Double3x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator !=(Double3x4 left, Double3x4 right) => default; } /// @@ -2141,6 +2947,7 @@ public unsafe partial struct Double4x1 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4x1 operator +(Double4x1 left, Double4x1 right) => default; @@ -2149,14 +2956,25 @@ public unsafe partial struct Double4x1 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4x1 operator /(Double4x1 left, Double4x1 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double4x1 operator %(Double4x1 left, Double4x1 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4x1 operator *(Double4x1 left, Double4x1 right) => default; @@ -2165,9 +2983,64 @@ public unsafe partial struct Double4x1 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4x1 operator -(Double4x1 left, Double4x1 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator >(Double4x1 left, Double4x1 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator >=(Double4x1 left, Double4x1 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator <(Double4x1 left, Double4x1 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator <=(Double4x1 left, Double4x1 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator ==(Double4x1 left, Double4x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator !=(Double4x1 left, Double4x1 right) => default; + /// /// Casts a value to a one. /// @@ -2356,6 +3229,7 @@ public unsafe partial struct Double4x2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4x2 operator +(Double4x2 left, Double4x2 right) => default; @@ -2364,14 +3238,25 @@ public unsafe partial struct Double4x2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4x2 operator /(Double4x2 left, Double4x2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double4x2 operator %(Double4x2 left, Double4x2 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4x2 operator *(Double4x2 left, Double4x2 right) => default; @@ -2380,8 +3265,63 @@ public unsafe partial struct Double4x2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4x2 operator -(Double4x2 left, Double4x2 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator >(Double4x2 left, Double4x2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator >=(Double4x2 left, Double4x2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator <(Double4x2 left, Double4x2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator <=(Double4x2 left, Double4x2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator ==(Double4x2 left, Double4x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator !=(Double4x2 left, Double4x2 right) => default; } /// @@ -2613,6 +3553,7 @@ public unsafe partial struct Double4x3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4x3 operator +(Double4x3 left, Double4x3 right) => default; @@ -2621,14 +3562,25 @@ public unsafe partial struct Double4x3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4x3 operator /(Double4x3 left, Double4x3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double4x3 operator %(Double4x3 left, Double4x3 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4x3 operator *(Double4x3 left, Double4x3 right) => default; @@ -2637,8 +3589,63 @@ public unsafe partial struct Double4x3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4x3 operator -(Double4x3 left, Double4x3 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator >(Double4x3 left, Double4x3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator >=(Double4x3 left, Double4x3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator <(Double4x3 left, Double4x3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator <=(Double4x3 left, Double4x3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator ==(Double4x3 left, Double4x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator !=(Double4x3 left, Double4x3 right) => default; } /// @@ -2918,6 +3925,7 @@ public unsafe partial struct Double4x4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4x4 operator +(Double4x4 left, Double4x4 right) => default; @@ -2926,14 +3934,25 @@ public unsafe partial struct Double4x4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4x4 operator /(Double4x4 left, Double4x4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Double4x4 operator %(Double4x4 left, Double4x4 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4x4 operator *(Double4x4 left, Double4x4 right) => default; @@ -2942,6 +3961,61 @@ public unsafe partial struct Double4x4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Double4x4 operator -(Double4x4 left, Double4x4 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator >(Double4x4 left, Double4x4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator >=(Double4x4 left, Double4x4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator <(Double4x4 left, Double4x4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator <=(Double4x4 left, Double4x4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator ==(Double4x4 left, Double4x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator !=(Double4x4 left, Double4x4 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/Float/Float2.cs b/src/ComputeSharp.Core/Primitives/Float/Float2.cs index 9ab871bf..b8e667cb 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float2.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float2.cs @@ -1,5 +1,7 @@ using System.Numerics; +#pragma warning disable CS0660, CS0661 + namespace ComputeSharp; /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs index e1962a1a..9094132f 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float2.g.cs @@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic #endif #nullable enable +#pragma warning disable CS0660, CS0661 namespace ComputeSharp; @@ -437,6 +438,7 @@ public unsafe partial struct Float2 /// Negates a value. /// /// The value to negate. + /// The negated value of . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2 operator -(Float2 xy) => default; @@ -445,6 +447,7 @@ public unsafe partial struct Float2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2 operator +(Float2 left, Float2 right) => default; @@ -453,14 +456,25 @@ public unsafe partial struct Float2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2 operator /(Float2 left, Float2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2 operator %(Float2 left, Float2 right) => default; + /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2 operator *(Float2 left, Float2 right) => default; @@ -469,6 +483,61 @@ public unsafe partial struct Float2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2 operator -(Float2 left, Float2 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator >(Float2 left, Float2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator >=(Float2 left, Float2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator <(Float2 left, Float2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator <=(Float2 left, Float2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator ==(Float2 left, Float2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator !=(Float2 left, Float2 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/Float/Float3.cs b/src/ComputeSharp.Core/Primitives/Float/Float3.cs index 09afd529..16693e7e 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float3.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float3.cs @@ -1,5 +1,7 @@ using System.Numerics; +#pragma warning disable CS0660, CS0661 + namespace ComputeSharp; /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs index 22887d9d..557b29b4 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float3.g.cs @@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic #endif #nullable enable +#pragma warning disable CS0660, CS0661 namespace ComputeSharp; @@ -1518,6 +1519,7 @@ public unsafe partial struct Float3 /// Negates a value. /// /// The value to negate. + /// The negated value of . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3 operator -(Float3 xyz) => default; @@ -1526,6 +1528,7 @@ public unsafe partial struct Float3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3 operator +(Float3 left, Float3 right) => default; @@ -1534,14 +1537,25 @@ public unsafe partial struct Float3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3 operator /(Float3 left, Float3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3 operator %(Float3 left, Float3 right) => default; + /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3 operator *(Float3 left, Float3 right) => default; @@ -1550,6 +1564,61 @@ public unsafe partial struct Float3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3 operator -(Float3 left, Float3 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator >(Float3 left, Float3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator >=(Float3 left, Float3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator <(Float3 left, Float3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator <=(Float3 left, Float3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator ==(Float3 left, Float3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator !=(Float3 left, Float3 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/Float/Float4.cs b/src/ComputeSharp.Core/Primitives/Float/Float4.cs index a31b90ec..18a16673 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float4.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float4.cs @@ -1,5 +1,7 @@ using System.Numerics; +#pragma warning disable CS0660, CS0661 + namespace ComputeSharp; /// diff --git a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs index c22bb7fe..e011344e 100644 --- a/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/Float4.g.cs @@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic #endif #nullable enable +#pragma warning disable CS0660, CS0661 namespace ComputeSharp; @@ -4159,6 +4160,7 @@ public unsafe partial struct Float4 /// Negates a value. /// /// The value to negate. + /// The negated value of . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4 operator -(Float4 xyzw) => default; @@ -4167,6 +4169,7 @@ public unsafe partial struct Float4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4 operator +(Float4 left, Float4 right) => default; @@ -4175,14 +4178,25 @@ public unsafe partial struct Float4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4 operator /(Float4 left, Float4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4 operator %(Float4 left, Float4 right) => default; + /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4 operator *(Float4 left, Float4 right) => default; @@ -4191,6 +4205,61 @@ public unsafe partial struct Float4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4 operator -(Float4 left, Float4 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator >(Float4 left, Float4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator >=(Float4 left, Float4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator <(Float4 left, Float4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator <=(Float4 left, Float4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator ==(Float4 left, Float4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator !=(Float4 left, Float4 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs index 54194c88..aa40978f 100644 --- a/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Float/FloatMxN.g.cs @@ -5,6 +5,8 @@ using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif +#pragma warning disable CS0660, CS0661 + namespace ComputeSharp; /// @@ -92,6 +94,7 @@ public unsafe partial struct Float1x1 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x1 operator +(Float1x1 left, Float1x1 right) => default; @@ -100,14 +103,25 @@ public unsafe partial struct Float1x1 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x1 operator /(Float1x1 left, Float1x1 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float1x1 operator %(Float1x1 left, Float1x1 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x1 operator *(Float1x1 left, Float1x1 right) => default; @@ -116,8 +130,63 @@ public unsafe partial struct Float1x1 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x1 operator -(Float1x1 left, Float1x1 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator >(Float1x1 left, Float1x1 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator >=(Float1x1 left, Float1x1 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator <(Float1x1 left, Float1x1 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator <=(Float1x1 left, Float1x1 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator ==(Float1x1 left, Float1x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator !=(Float1x1 left, Float1x1 right) => default; } /// @@ -216,6 +285,7 @@ public unsafe partial struct Float1x2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x2 operator +(Float1x2 left, Float1x2 right) => default; @@ -224,14 +294,25 @@ public unsafe partial struct Float1x2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x2 operator /(Float1x2 left, Float1x2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float1x2 operator %(Float1x2 left, Float1x2 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x2 operator *(Float1x2 left, Float1x2 right) => default; @@ -240,9 +321,64 @@ public unsafe partial struct Float1x2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x2 operator -(Float1x2 left, Float1x2 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator >(Float1x2 left, Float1x2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator >=(Float1x2 left, Float1x2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator <(Float1x2 left, Float1x2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator <=(Float1x2 left, Float1x2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator ==(Float1x2 left, Float1x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator !=(Float1x2 left, Float1x2 right) => default; + /// /// Casts a value to a one. /// @@ -357,6 +493,7 @@ public unsafe partial struct Float1x3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x3 operator +(Float1x3 left, Float1x3 right) => default; @@ -365,14 +502,25 @@ public unsafe partial struct Float1x3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x3 operator /(Float1x3 left, Float1x3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float1x3 operator %(Float1x3 left, Float1x3 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x3 operator *(Float1x3 left, Float1x3 right) => default; @@ -381,9 +529,64 @@ public unsafe partial struct Float1x3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x3 operator -(Float1x3 left, Float1x3 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator >(Float1x3 left, Float1x3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator >=(Float1x3 left, Float1x3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator <(Float1x3 left, Float1x3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator <=(Float1x3 left, Float1x3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator ==(Float1x3 left, Float1x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator !=(Float1x3 left, Float1x3 right) => default; + /// /// Casts a value to a one. /// @@ -509,6 +712,7 @@ public unsafe partial struct Float1x4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x4 operator +(Float1x4 left, Float1x4 right) => default; @@ -517,14 +721,25 @@ public unsafe partial struct Float1x4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x4 operator /(Float1x4 left, Float1x4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float1x4 operator %(Float1x4 left, Float1x4 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x4 operator *(Float1x4 left, Float1x4 right) => default; @@ -533,9 +748,64 @@ public unsafe partial struct Float1x4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float1x4 operator -(Float1x4 left, Float1x4 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator >(Float1x4 left, Float1x4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator >=(Float1x4 left, Float1x4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator <(Float1x4 left, Float1x4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator <=(Float1x4 left, Float1x4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator ==(Float1x4 left, Float1x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator !=(Float1x4 left, Float1x4 right) => default; + /// /// Casts a value to a one. /// @@ -639,6 +909,7 @@ public unsafe partial struct Float2x1 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x1 operator +(Float2x1 left, Float2x1 right) => default; @@ -647,14 +918,25 @@ public unsafe partial struct Float2x1 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x1 operator /(Float2x1 left, Float2x1 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2x1 operator %(Float2x1 left, Float2x1 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x1 operator *(Float2x1 left, Float2x1 right) => default; @@ -663,9 +945,64 @@ public unsafe partial struct Float2x1 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x1 operator -(Float2x1 left, Float2x1 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator >(Float2x1 left, Float2x1 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator >=(Float2x1 left, Float2x1 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator <(Float2x1 left, Float2x1 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator <=(Float2x1 left, Float2x1 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator ==(Float2x1 left, Float2x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator !=(Float2x1 left, Float2x1 right) => default; + /// /// Casts a value to a one. /// @@ -804,6 +1141,7 @@ public unsafe partial struct Float2x2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x2 operator +(Float2x2 left, Float2x2 right) => default; @@ -812,14 +1150,25 @@ public unsafe partial struct Float2x2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x2 operator /(Float2x2 left, Float2x2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2x2 operator %(Float2x2 left, Float2x2 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x2 operator *(Float2x2 left, Float2x2 right) => default; @@ -828,8 +1177,63 @@ public unsafe partial struct Float2x2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x2 operator -(Float2x2 left, Float2x2 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator >(Float2x2 left, Float2x2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator >=(Float2x2 left, Float2x2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator <(Float2x2 left, Float2x2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator <=(Float2x2 left, Float2x2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator ==(Float2x2 left, Float2x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator !=(Float2x2 left, Float2x2 right) => default; } /// @@ -987,6 +1391,7 @@ public unsafe partial struct Float2x3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x3 operator +(Float2x3 left, Float2x3 right) => default; @@ -995,14 +1400,25 @@ public unsafe partial struct Float2x3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x3 operator /(Float2x3 left, Float2x3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2x3 operator %(Float2x3 left, Float2x3 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x3 operator *(Float2x3 left, Float2x3 right) => default; @@ -1011,8 +1427,63 @@ public unsafe partial struct Float2x3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x3 operator -(Float2x3 left, Float2x3 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator >(Float2x3 left, Float2x3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator >=(Float2x3 left, Float2x3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator <(Float2x3 left, Float2x3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator <=(Float2x3 left, Float2x3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator ==(Float2x3 left, Float2x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator !=(Float2x3 left, Float2x3 right) => default; } /// @@ -1194,6 +1665,7 @@ public unsafe partial struct Float2x4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x4 operator +(Float2x4 left, Float2x4 right) => default; @@ -1202,14 +1674,25 @@ public unsafe partial struct Float2x4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x4 operator /(Float2x4 left, Float2x4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float2x4 operator %(Float2x4 left, Float2x4 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x4 operator *(Float2x4 left, Float2x4 right) => default; @@ -1218,8 +1701,63 @@ public unsafe partial struct Float2x4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float2x4 operator -(Float2x4 left, Float2x4 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator >(Float2x4 left, Float2x4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator >=(Float2x4 left, Float2x4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator <(Float2x4 left, Float2x4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator <=(Float2x4 left, Float2x4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator ==(Float2x4 left, Float2x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator !=(Float2x4 left, Float2x4 right) => default; } /// @@ -1329,6 +1867,7 @@ public unsafe partial struct Float3x1 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x1 operator +(Float3x1 left, Float3x1 right) => default; @@ -1337,14 +1876,25 @@ public unsafe partial struct Float3x1 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x1 operator /(Float3x1 left, Float3x1 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3x1 operator %(Float3x1 left, Float3x1 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x1 operator *(Float3x1 left, Float3x1 right) => default; @@ -1353,9 +1903,64 @@ public unsafe partial struct Float3x1 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x1 operator -(Float3x1 left, Float3x1 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator >(Float3x1 left, Float3x1 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator >=(Float3x1 left, Float3x1 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator <(Float3x1 left, Float3x1 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator <=(Float3x1 left, Float3x1 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator ==(Float3x1 left, Float3x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator !=(Float3x1 left, Float3x1 right) => default; + /// /// Casts a value to a one. /// @@ -1519,6 +2124,7 @@ public unsafe partial struct Float3x2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x2 operator +(Float3x2 left, Float3x2 right) => default; @@ -1527,14 +2133,25 @@ public unsafe partial struct Float3x2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x2 operator /(Float3x2 left, Float3x2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3x2 operator %(Float3x2 left, Float3x2 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x2 operator *(Float3x2 left, Float3x2 right) => default; @@ -1543,8 +2160,63 @@ public unsafe partial struct Float3x2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x2 operator -(Float3x2 left, Float3x2 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator >(Float3x2 left, Float3x2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator >=(Float3x2 left, Float3x2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator <(Float3x2 left, Float3x2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator <=(Float3x2 left, Float3x2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator ==(Float3x2 left, Float3x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator !=(Float3x2 left, Float3x2 right) => default; } /// @@ -1739,6 +2411,7 @@ public unsafe partial struct Float3x3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x3 operator +(Float3x3 left, Float3x3 right) => default; @@ -1747,14 +2420,25 @@ public unsafe partial struct Float3x3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x3 operator /(Float3x3 left, Float3x3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3x3 operator %(Float3x3 left, Float3x3 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x3 operator *(Float3x3 left, Float3x3 right) => default; @@ -1763,8 +2447,63 @@ public unsafe partial struct Float3x3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x3 operator -(Float3x3 left, Float3x3 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator >(Float3x3 left, Float3x3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator >=(Float3x3 left, Float3x3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator <(Float3x3 left, Float3x3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator <=(Float3x3 left, Float3x3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator ==(Float3x3 left, Float3x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator !=(Float3x3 left, Float3x3 right) => default; } /// @@ -1995,6 +2734,7 @@ public unsafe partial struct Float3x4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x4 operator +(Float3x4 left, Float3x4 right) => default; @@ -2003,14 +2743,25 @@ public unsafe partial struct Float3x4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x4 operator /(Float3x4 left, Float3x4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float3x4 operator %(Float3x4 left, Float3x4 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x4 operator *(Float3x4 left, Float3x4 right) => default; @@ -2019,8 +2770,63 @@ public unsafe partial struct Float3x4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float3x4 operator -(Float3x4 left, Float3x4 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator >(Float3x4 left, Float3x4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator >=(Float3x4 left, Float3x4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator <(Float3x4 left, Float3x4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator <=(Float3x4 left, Float3x4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator ==(Float3x4 left, Float3x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator !=(Float3x4 left, Float3x4 right) => default; } /// @@ -2141,6 +2947,7 @@ public unsafe partial struct Float4x1 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x1 operator +(Float4x1 left, Float4x1 right) => default; @@ -2149,14 +2956,25 @@ public unsafe partial struct Float4x1 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x1 operator /(Float4x1 left, Float4x1 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4x1 operator %(Float4x1 left, Float4x1 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x1 operator *(Float4x1 left, Float4x1 right) => default; @@ -2165,9 +2983,64 @@ public unsafe partial struct Float4x1 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x1 operator -(Float4x1 left, Float4x1 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator >(Float4x1 left, Float4x1 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator >=(Float4x1 left, Float4x1 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator <(Float4x1 left, Float4x1 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator <=(Float4x1 left, Float4x1 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator ==(Float4x1 left, Float4x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator !=(Float4x1 left, Float4x1 right) => default; + /// /// Casts a value to a one. /// @@ -2356,6 +3229,7 @@ public unsafe partial struct Float4x2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x2 operator +(Float4x2 left, Float4x2 right) => default; @@ -2364,14 +3238,25 @@ public unsafe partial struct Float4x2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x2 operator /(Float4x2 left, Float4x2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4x2 operator %(Float4x2 left, Float4x2 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x2 operator *(Float4x2 left, Float4x2 right) => default; @@ -2380,8 +3265,63 @@ public unsafe partial struct Float4x2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x2 operator -(Float4x2 left, Float4x2 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator >(Float4x2 left, Float4x2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator >=(Float4x2 left, Float4x2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator <(Float4x2 left, Float4x2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator <=(Float4x2 left, Float4x2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator ==(Float4x2 left, Float4x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator !=(Float4x2 left, Float4x2 right) => default; } /// @@ -2613,6 +3553,7 @@ public unsafe partial struct Float4x3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x3 operator +(Float4x3 left, Float4x3 right) => default; @@ -2621,14 +3562,25 @@ public unsafe partial struct Float4x3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x3 operator /(Float4x3 left, Float4x3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4x3 operator %(Float4x3 left, Float4x3 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x3 operator *(Float4x3 left, Float4x3 right) => default; @@ -2637,8 +3589,63 @@ public unsafe partial struct Float4x3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x3 operator -(Float4x3 left, Float4x3 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator >(Float4x3 left, Float4x3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator >=(Float4x3 left, Float4x3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator <(Float4x3 left, Float4x3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator <=(Float4x3 left, Float4x3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator ==(Float4x3 left, Float4x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator !=(Float4x3 left, Float4x3 right) => default; } /// @@ -2918,6 +3925,7 @@ public unsafe partial struct Float4x4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x4 operator +(Float4x4 left, Float4x4 right) => default; @@ -2926,14 +3934,25 @@ public unsafe partial struct Float4x4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x4 operator /(Float4x4 left, Float4x4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Float4x4 operator %(Float4x4 left, Float4x4 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x4 operator *(Float4x4 left, Float4x4 right) => default; @@ -2942,6 +3961,61 @@ public unsafe partial struct Float4x4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Float4x4 operator -(Float4x4 left, Float4x4 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator >(Float4x4 left, Float4x4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator >=(Float4x4 left, Float4x4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator <(Float4x4 left, Float4x4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator <=(Float4x4 left, Float4x4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator ==(Float4x4 left, Float4x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator !=(Float4x4 left, Float4x4 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.cs b/src/ComputeSharp.Core/Primitives/Int/Int2.cs index 71a5865c..2441d744 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int2.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int2.cs @@ -1,4 +1,6 @@ -namespace ComputeSharp; +#pragma warning disable CS0660, CS0661 + +namespace ComputeSharp; /// /// A that maps the HLSL type. diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs index af6218ba..27a71a8f 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs @@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic #endif #nullable enable +#pragma warning disable CS0660, CS0661 namespace ComputeSharp; @@ -437,6 +438,7 @@ public unsafe partial struct Int2 /// Negates a value. /// /// The value to negate. + /// The negated value of . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2 operator -(Int2 xy) => default; @@ -445,6 +447,7 @@ public unsafe partial struct Int2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2 operator +(Int2 left, Int2 right) => default; @@ -453,14 +456,25 @@ public unsafe partial struct Int2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2 operator /(Int2 left, Int2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int2 operator %(Int2 left, Int2 right) => default; + /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2 operator *(Int2 left, Int2 right) => default; @@ -469,6 +483,61 @@ public unsafe partial struct Int2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2 operator -(Int2 left, Int2 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator >(Int2 left, Int2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator >=(Int2 left, Int2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator <(Int2 left, Int2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator <=(Int2 left, Int2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator ==(Int2 left, Int2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator !=(Int2 left, Int2 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.cs index e4335439..74f26765 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int3.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int3.cs @@ -1,4 +1,6 @@ -namespace ComputeSharp; +#pragma warning disable CS0660, CS0661 + +namespace ComputeSharp; /// /// A that maps the HLSL type. diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs index 6b64d48c..a5d0d39b 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs @@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic #endif #nullable enable +#pragma warning disable CS0660, CS0661 namespace ComputeSharp; @@ -1518,6 +1519,7 @@ public unsafe partial struct Int3 /// Negates a value. /// /// The value to negate. + /// The negated value of . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3 operator -(Int3 xyz) => default; @@ -1526,6 +1528,7 @@ public unsafe partial struct Int3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3 operator +(Int3 left, Int3 right) => default; @@ -1534,14 +1537,25 @@ public unsafe partial struct Int3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3 operator /(Int3 left, Int3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int3 operator %(Int3 left, Int3 right) => default; + /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3 operator *(Int3 left, Int3 right) => default; @@ -1550,6 +1564,61 @@ public unsafe partial struct Int3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3 operator -(Int3 left, Int3 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator >(Int3 left, Int3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator >=(Int3 left, Int3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator <(Int3 left, Int3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator <=(Int3 left, Int3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator ==(Int3 left, Int3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator !=(Int3 left, Int3 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.cs index 0c4b2cc7..744a6c7d 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int4.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int4.cs @@ -1,4 +1,6 @@ -namespace ComputeSharp; +#pragma warning disable CS0660, CS0661 + +namespace ComputeSharp; /// /// A that maps the HLSL type. diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs index 0189a123..408a4435 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs @@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic #endif #nullable enable +#pragma warning disable CS0660, CS0661 namespace ComputeSharp; @@ -4159,6 +4160,7 @@ public unsafe partial struct Int4 /// Negates a value. /// /// The value to negate. + /// The negated value of . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4 operator -(Int4 xyzw) => default; @@ -4167,6 +4169,7 @@ public unsafe partial struct Int4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4 operator +(Int4 left, Int4 right) => default; @@ -4175,14 +4178,25 @@ public unsafe partial struct Int4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4 operator /(Int4 left, Int4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int4 operator %(Int4 left, Int4 right) => default; + /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4 operator *(Int4 left, Int4 right) => default; @@ -4191,6 +4205,61 @@ public unsafe partial struct Int4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4 operator -(Int4 left, Int4 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator >(Int4 left, Int4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator >=(Int4 left, Int4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator <(Int4 left, Int4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator <=(Int4 left, Int4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator ==(Int4 left, Int4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator !=(Int4 left, Int4 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs index 7f37623c..bb2411c6 100644 --- a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs @@ -5,6 +5,8 @@ using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif +#pragma warning disable CS0660, CS0661 + namespace ComputeSharp; /// @@ -92,6 +94,7 @@ public unsafe partial struct Int1x1 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x1 operator +(Int1x1 left, Int1x1 right) => default; @@ -100,14 +103,25 @@ public unsafe partial struct Int1x1 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x1 operator /(Int1x1 left, Int1x1 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int1x1 operator %(Int1x1 left, Int1x1 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x1 operator *(Int1x1 left, Int1x1 right) => default; @@ -116,8 +130,63 @@ public unsafe partial struct Int1x1 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x1 operator -(Int1x1 left, Int1x1 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator >(Int1x1 left, Int1x1 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator >=(Int1x1 left, Int1x1 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator <(Int1x1 left, Int1x1 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator <=(Int1x1 left, Int1x1 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator ==(Int1x1 left, Int1x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator !=(Int1x1 left, Int1x1 right) => default; } /// @@ -216,6 +285,7 @@ public unsafe partial struct Int1x2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x2 operator +(Int1x2 left, Int1x2 right) => default; @@ -224,14 +294,25 @@ public unsafe partial struct Int1x2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x2 operator /(Int1x2 left, Int1x2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int1x2 operator %(Int1x2 left, Int1x2 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x2 operator *(Int1x2 left, Int1x2 right) => default; @@ -240,9 +321,64 @@ public unsafe partial struct Int1x2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x2 operator -(Int1x2 left, Int1x2 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator >(Int1x2 left, Int1x2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator >=(Int1x2 left, Int1x2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator <(Int1x2 left, Int1x2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator <=(Int1x2 left, Int1x2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator ==(Int1x2 left, Int1x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator !=(Int1x2 left, Int1x2 right) => default; + /// /// Casts a value to a one. /// @@ -357,6 +493,7 @@ public unsafe partial struct Int1x3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x3 operator +(Int1x3 left, Int1x3 right) => default; @@ -365,14 +502,25 @@ public unsafe partial struct Int1x3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x3 operator /(Int1x3 left, Int1x3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int1x3 operator %(Int1x3 left, Int1x3 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x3 operator *(Int1x3 left, Int1x3 right) => default; @@ -381,9 +529,64 @@ public unsafe partial struct Int1x3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x3 operator -(Int1x3 left, Int1x3 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator >(Int1x3 left, Int1x3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator >=(Int1x3 left, Int1x3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator <(Int1x3 left, Int1x3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator <=(Int1x3 left, Int1x3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator ==(Int1x3 left, Int1x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator !=(Int1x3 left, Int1x3 right) => default; + /// /// Casts a value to a one. /// @@ -509,6 +712,7 @@ public unsafe partial struct Int1x4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x4 operator +(Int1x4 left, Int1x4 right) => default; @@ -517,14 +721,25 @@ public unsafe partial struct Int1x4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x4 operator /(Int1x4 left, Int1x4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int1x4 operator %(Int1x4 left, Int1x4 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x4 operator *(Int1x4 left, Int1x4 right) => default; @@ -533,9 +748,64 @@ public unsafe partial struct Int1x4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int1x4 operator -(Int1x4 left, Int1x4 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator >(Int1x4 left, Int1x4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator >=(Int1x4 left, Int1x4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator <(Int1x4 left, Int1x4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator <=(Int1x4 left, Int1x4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator ==(Int1x4 left, Int1x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator !=(Int1x4 left, Int1x4 right) => default; + /// /// Casts a value to a one. /// @@ -639,6 +909,7 @@ public unsafe partial struct Int2x1 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x1 operator +(Int2x1 left, Int2x1 right) => default; @@ -647,14 +918,25 @@ public unsafe partial struct Int2x1 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x1 operator /(Int2x1 left, Int2x1 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int2x1 operator %(Int2x1 left, Int2x1 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x1 operator *(Int2x1 left, Int2x1 right) => default; @@ -663,9 +945,64 @@ public unsafe partial struct Int2x1 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x1 operator -(Int2x1 left, Int2x1 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator >(Int2x1 left, Int2x1 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator >=(Int2x1 left, Int2x1 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator <(Int2x1 left, Int2x1 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator <=(Int2x1 left, Int2x1 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator ==(Int2x1 left, Int2x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator !=(Int2x1 left, Int2x1 right) => default; + /// /// Casts a value to a one. /// @@ -804,6 +1141,7 @@ public unsafe partial struct Int2x2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x2 operator +(Int2x2 left, Int2x2 right) => default; @@ -812,14 +1150,25 @@ public unsafe partial struct Int2x2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x2 operator /(Int2x2 left, Int2x2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int2x2 operator %(Int2x2 left, Int2x2 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x2 operator *(Int2x2 left, Int2x2 right) => default; @@ -828,8 +1177,63 @@ public unsafe partial struct Int2x2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x2 operator -(Int2x2 left, Int2x2 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator >(Int2x2 left, Int2x2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator >=(Int2x2 left, Int2x2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator <(Int2x2 left, Int2x2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator <=(Int2x2 left, Int2x2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator ==(Int2x2 left, Int2x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator !=(Int2x2 left, Int2x2 right) => default; } /// @@ -987,6 +1391,7 @@ public unsafe partial struct Int2x3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x3 operator +(Int2x3 left, Int2x3 right) => default; @@ -995,14 +1400,25 @@ public unsafe partial struct Int2x3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x3 operator /(Int2x3 left, Int2x3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int2x3 operator %(Int2x3 left, Int2x3 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x3 operator *(Int2x3 left, Int2x3 right) => default; @@ -1011,8 +1427,63 @@ public unsafe partial struct Int2x3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x3 operator -(Int2x3 left, Int2x3 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator >(Int2x3 left, Int2x3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator >=(Int2x3 left, Int2x3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator <(Int2x3 left, Int2x3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator <=(Int2x3 left, Int2x3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator ==(Int2x3 left, Int2x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator !=(Int2x3 left, Int2x3 right) => default; } /// @@ -1194,6 +1665,7 @@ public unsafe partial struct Int2x4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x4 operator +(Int2x4 left, Int2x4 right) => default; @@ -1202,14 +1674,25 @@ public unsafe partial struct Int2x4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x4 operator /(Int2x4 left, Int2x4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int2x4 operator %(Int2x4 left, Int2x4 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x4 operator *(Int2x4 left, Int2x4 right) => default; @@ -1218,8 +1701,63 @@ public unsafe partial struct Int2x4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int2x4 operator -(Int2x4 left, Int2x4 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator >(Int2x4 left, Int2x4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator >=(Int2x4 left, Int2x4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator <(Int2x4 left, Int2x4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator <=(Int2x4 left, Int2x4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator ==(Int2x4 left, Int2x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator !=(Int2x4 left, Int2x4 right) => default; } /// @@ -1329,6 +1867,7 @@ public unsafe partial struct Int3x1 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x1 operator +(Int3x1 left, Int3x1 right) => default; @@ -1337,14 +1876,25 @@ public unsafe partial struct Int3x1 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x1 operator /(Int3x1 left, Int3x1 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int3x1 operator %(Int3x1 left, Int3x1 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x1 operator *(Int3x1 left, Int3x1 right) => default; @@ -1353,9 +1903,64 @@ public unsafe partial struct Int3x1 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x1 operator -(Int3x1 left, Int3x1 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator >(Int3x1 left, Int3x1 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator >=(Int3x1 left, Int3x1 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator <(Int3x1 left, Int3x1 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator <=(Int3x1 left, Int3x1 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator ==(Int3x1 left, Int3x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator !=(Int3x1 left, Int3x1 right) => default; + /// /// Casts a value to a one. /// @@ -1519,6 +2124,7 @@ public unsafe partial struct Int3x2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x2 operator +(Int3x2 left, Int3x2 right) => default; @@ -1527,14 +2133,25 @@ public unsafe partial struct Int3x2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x2 operator /(Int3x2 left, Int3x2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int3x2 operator %(Int3x2 left, Int3x2 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x2 operator *(Int3x2 left, Int3x2 right) => default; @@ -1543,8 +2160,63 @@ public unsafe partial struct Int3x2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x2 operator -(Int3x2 left, Int3x2 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator >(Int3x2 left, Int3x2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator >=(Int3x2 left, Int3x2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator <(Int3x2 left, Int3x2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator <=(Int3x2 left, Int3x2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator ==(Int3x2 left, Int3x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator !=(Int3x2 left, Int3x2 right) => default; } /// @@ -1739,6 +2411,7 @@ public unsafe partial struct Int3x3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x3 operator +(Int3x3 left, Int3x3 right) => default; @@ -1747,14 +2420,25 @@ public unsafe partial struct Int3x3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x3 operator /(Int3x3 left, Int3x3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int3x3 operator %(Int3x3 left, Int3x3 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x3 operator *(Int3x3 left, Int3x3 right) => default; @@ -1763,8 +2447,63 @@ public unsafe partial struct Int3x3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x3 operator -(Int3x3 left, Int3x3 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator >(Int3x3 left, Int3x3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator >=(Int3x3 left, Int3x3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator <(Int3x3 left, Int3x3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator <=(Int3x3 left, Int3x3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator ==(Int3x3 left, Int3x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator !=(Int3x3 left, Int3x3 right) => default; } /// @@ -1995,6 +2734,7 @@ public unsafe partial struct Int3x4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x4 operator +(Int3x4 left, Int3x4 right) => default; @@ -2003,14 +2743,25 @@ public unsafe partial struct Int3x4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x4 operator /(Int3x4 left, Int3x4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int3x4 operator %(Int3x4 left, Int3x4 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x4 operator *(Int3x4 left, Int3x4 right) => default; @@ -2019,8 +2770,63 @@ public unsafe partial struct Int3x4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3x4 operator -(Int3x4 left, Int3x4 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator >(Int3x4 left, Int3x4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator >=(Int3x4 left, Int3x4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator <(Int3x4 left, Int3x4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator <=(Int3x4 left, Int3x4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator ==(Int3x4 left, Int3x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator !=(Int3x4 left, Int3x4 right) => default; } /// @@ -2141,6 +2947,7 @@ public unsafe partial struct Int4x1 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x1 operator +(Int4x1 left, Int4x1 right) => default; @@ -2149,14 +2956,25 @@ public unsafe partial struct Int4x1 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x1 operator /(Int4x1 left, Int4x1 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int4x1 operator %(Int4x1 left, Int4x1 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x1 operator *(Int4x1 left, Int4x1 right) => default; @@ -2165,9 +2983,64 @@ public unsafe partial struct Int4x1 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x1 operator -(Int4x1 left, Int4x1 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator >(Int4x1 left, Int4x1 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator >=(Int4x1 left, Int4x1 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator <(Int4x1 left, Int4x1 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator <=(Int4x1 left, Int4x1 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator ==(Int4x1 left, Int4x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator !=(Int4x1 left, Int4x1 right) => default; + /// /// Casts a value to a one. /// @@ -2356,6 +3229,7 @@ public unsafe partial struct Int4x2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x2 operator +(Int4x2 left, Int4x2 right) => default; @@ -2364,14 +3238,25 @@ public unsafe partial struct Int4x2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x2 operator /(Int4x2 left, Int4x2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int4x2 operator %(Int4x2 left, Int4x2 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x2 operator *(Int4x2 left, Int4x2 right) => default; @@ -2380,8 +3265,63 @@ public unsafe partial struct Int4x2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x2 operator -(Int4x2 left, Int4x2 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator >(Int4x2 left, Int4x2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator >=(Int4x2 left, Int4x2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator <(Int4x2 left, Int4x2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator <=(Int4x2 left, Int4x2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator ==(Int4x2 left, Int4x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator !=(Int4x2 left, Int4x2 right) => default; } /// @@ -2613,6 +3553,7 @@ public unsafe partial struct Int4x3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x3 operator +(Int4x3 left, Int4x3 right) => default; @@ -2621,14 +3562,25 @@ public unsafe partial struct Int4x3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x3 operator /(Int4x3 left, Int4x3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int4x3 operator %(Int4x3 left, Int4x3 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x3 operator *(Int4x3 left, Int4x3 right) => default; @@ -2637,8 +3589,63 @@ public unsafe partial struct Int4x3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x3 operator -(Int4x3 left, Int4x3 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator >(Int4x3 left, Int4x3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator >=(Int4x3 left, Int4x3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator <(Int4x3 left, Int4x3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator <=(Int4x3 left, Int4x3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator ==(Int4x3 left, Int4x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator !=(Int4x3 left, Int4x3 right) => default; } /// @@ -2918,6 +3925,7 @@ public unsafe partial struct Int4x4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x4 operator +(Int4x4 left, Int4x4 right) => default; @@ -2926,14 +3934,25 @@ public unsafe partial struct Int4x4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x4 operator /(Int4x4 left, Int4x4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Int4x4 operator %(Int4x4 left, Int4x4 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x4 operator *(Int4x4 left, Int4x4 right) => default; @@ -2942,6 +3961,61 @@ public unsafe partial struct Int4x4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int4x4 operator -(Int4x4 left, Int4x4 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator >(Int4x4 left, Int4x4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator >=(Int4x4 left, Int4x4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator <(Int4x4 left, Int4x4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator <=(Int4x4 left, Int4x4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator ==(Int4x4 left, Int4x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator !=(Int4x4 left, Int4x4 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude index e39de84a..074a3c70 100644 --- a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude @@ -17,6 +17,8 @@ using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif +#pragma warning disable CS0660, CS0661 + namespace ComputeSharp; <# @@ -221,6 +223,7 @@ public unsafe partial struct <#=fullTypeName#> /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=fullTypeName#> operator +(<#=fullTypeName#> left, <#=fullTypeName#> right) => default; @@ -229,14 +232,25 @@ public unsafe partial struct <#=fullTypeName#> /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=fullTypeName#> operator /(<#=fullTypeName#> left, <#=fullTypeName#> right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static <#=fullTypeName#> operator %(<#=fullTypeName#> left, <#=fullTypeName#> right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=fullTypeName#> operator *(<#=fullTypeName#> left, <#=fullTypeName#> right) => default; @@ -245,11 +259,68 @@ public unsafe partial struct <#=fullTypeName#> /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=fullTypeName#> operator -(<#=fullTypeName#> left, <#=fullTypeName#> right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool<#=rows#>x<#=columns#> operator >(<#=fullTypeName#> left, <#=fullTypeName#> right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool<#=rows#>x<#=columns#> operator >=(<#=fullTypeName#> left, <#=fullTypeName#> right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool<#=rows#>x<#=columns#> operator <(<#=fullTypeName#> left, <#=fullTypeName#> right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool<#=rows#>x<#=columns#> operator <=(<#=fullTypeName#> left, <#=fullTypeName#> right) => default; <# } + WriteLine(""); +#> + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool<#=rows#>x<#=columns#> operator ==(<#=fullTypeName#> left, <#=fullTypeName#> right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool<#=rows#>x<#=columns#> operator !=(<#=fullTypeName#> left, <#=fullTypeName#> right) => default; +<# // Generate the casting operators for row/column vectors if (rows == 1 && columns > 1) { diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt2.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt2.cs index fc92f7e7..2cf71c34 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt2.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt2.cs @@ -1,4 +1,6 @@ -namespace ComputeSharp; +#pragma warning disable CS0660, CS0661 + +namespace ComputeSharp; /// /// A that maps the HLSL type. diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs index 3de44ea2..454e74f3 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs @@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic #endif #nullable enable +#pragma warning disable CS0660, CS0661 namespace ComputeSharp; @@ -438,6 +439,7 @@ public unsafe partial struct UInt2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2 operator +(UInt2 left, UInt2 right) => default; @@ -446,14 +448,25 @@ public unsafe partial struct UInt2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2 operator /(UInt2 left, UInt2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt2 operator %(UInt2 left, UInt2 right) => default; + /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2 operator *(UInt2 left, UInt2 right) => default; @@ -462,6 +475,61 @@ public unsafe partial struct UInt2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2 operator -(UInt2 left, UInt2 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator >(UInt2 left, UInt2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator >=(UInt2 left, UInt2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator <(UInt2 left, UInt2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator <=(UInt2 left, UInt2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator ==(UInt2 left, UInt2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2 operator !=(UInt2 left, UInt2 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt3.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt3.cs index 87312c51..806a92ad 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt3.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt3.cs @@ -1,4 +1,6 @@ -namespace ComputeSharp; +#pragma warning disable CS0660, CS0661 + +namespace ComputeSharp; /// /// A that maps the HLSL type. diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs index 1a754e1a..d7e02e90 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs @@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic #endif #nullable enable +#pragma warning disable CS0660, CS0661 namespace ComputeSharp; @@ -1519,6 +1520,7 @@ public unsafe partial struct UInt3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3 operator +(UInt3 left, UInt3 right) => default; @@ -1527,14 +1529,25 @@ public unsafe partial struct UInt3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3 operator /(UInt3 left, UInt3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt3 operator %(UInt3 left, UInt3 right) => default; + /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3 operator *(UInt3 left, UInt3 right) => default; @@ -1543,6 +1556,61 @@ public unsafe partial struct UInt3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3 operator -(UInt3 left, UInt3 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator >(UInt3 left, UInt3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator >=(UInt3 left, UInt3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator <(UInt3 left, UInt3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator <=(UInt3 left, UInt3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator ==(UInt3 left, UInt3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3 operator !=(UInt3 left, UInt3 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt4.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt4.cs index 3e316b8a..2327cca4 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt4.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt4.cs @@ -1,4 +1,6 @@ -namespace ComputeSharp; +#pragma warning disable CS0660, CS0661 + +namespace ComputeSharp; /// /// A that maps the HLSL type. diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs index e78eb14e..d7475dda 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs @@ -8,6 +8,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic #endif #nullable enable +#pragma warning disable CS0660, CS0661 namespace ComputeSharp; @@ -4160,6 +4161,7 @@ public unsafe partial struct UInt4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4 operator +(UInt4 left, UInt4 right) => default; @@ -4168,14 +4170,25 @@ public unsafe partial struct UInt4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4 operator /(UInt4 left, UInt4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt4 operator %(UInt4 left, UInt4 right) => default; + /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4 operator *(UInt4 left, UInt4 right) => default; @@ -4184,6 +4197,61 @@ public unsafe partial struct UInt4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4 operator -(UInt4 left, UInt4 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator >(UInt4 left, UInt4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator >=(UInt4 left, UInt4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator <(UInt4 left, UInt4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator <=(UInt4 left, UInt4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator ==(UInt4 left, UInt4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4 operator !=(UInt4 left, UInt4 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/UInt/UIntMxN.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UIntMxN.g.cs index b2049e19..4527f17f 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UIntMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UIntMxN.g.cs @@ -5,6 +5,8 @@ using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif +#pragma warning disable CS0660, CS0661 + namespace ComputeSharp; /// @@ -85,6 +87,7 @@ public unsafe partial struct UInt1x1 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt1x1 operator +(UInt1x1 left, UInt1x1 right) => default; @@ -93,14 +96,25 @@ public unsafe partial struct UInt1x1 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt1x1 operator /(UInt1x1 left, UInt1x1 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt1x1 operator %(UInt1x1 left, UInt1x1 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt1x1 operator *(UInt1x1 left, UInt1x1 right) => default; @@ -109,8 +123,63 @@ public unsafe partial struct UInt1x1 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt1x1 operator -(UInt1x1 left, UInt1x1 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator >(UInt1x1 left, UInt1x1 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator >=(UInt1x1 left, UInt1x1 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator <(UInt1x1 left, UInt1x1 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator <=(UInt1x1 left, UInt1x1 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator ==(UInt1x1 left, UInt1x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x1 operator !=(UInt1x1 left, UInt1x1 right) => default; } /// @@ -202,6 +271,7 @@ public unsafe partial struct UInt1x2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt1x2 operator +(UInt1x2 left, UInt1x2 right) => default; @@ -210,14 +280,25 @@ public unsafe partial struct UInt1x2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt1x2 operator /(UInt1x2 left, UInt1x2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt1x2 operator %(UInt1x2 left, UInt1x2 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt1x2 operator *(UInt1x2 left, UInt1x2 right) => default; @@ -226,9 +307,64 @@ public unsafe partial struct UInt1x2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt1x2 operator -(UInt1x2 left, UInt1x2 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator >(UInt1x2 left, UInt1x2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator >=(UInt1x2 left, UInt1x2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator <(UInt1x2 left, UInt1x2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator <=(UInt1x2 left, UInt1x2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator ==(UInt1x2 left, UInt1x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x2 operator !=(UInt1x2 left, UInt1x2 right) => default; + /// /// Casts a value to a one. /// @@ -336,6 +472,7 @@ public unsafe partial struct UInt1x3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt1x3 operator +(UInt1x3 left, UInt1x3 right) => default; @@ -344,14 +481,25 @@ public unsafe partial struct UInt1x3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt1x3 operator /(UInt1x3 left, UInt1x3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt1x3 operator %(UInt1x3 left, UInt1x3 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt1x3 operator *(UInt1x3 left, UInt1x3 right) => default; @@ -360,9 +508,64 @@ public unsafe partial struct UInt1x3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt1x3 operator -(UInt1x3 left, UInt1x3 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator >(UInt1x3 left, UInt1x3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator >=(UInt1x3 left, UInt1x3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator <(UInt1x3 left, UInt1x3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator <=(UInt1x3 left, UInt1x3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator ==(UInt1x3 left, UInt1x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x3 operator !=(UInt1x3 left, UInt1x3 right) => default; + /// /// Casts a value to a one. /// @@ -481,6 +684,7 @@ public unsafe partial struct UInt1x4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt1x4 operator +(UInt1x4 left, UInt1x4 right) => default; @@ -489,14 +693,25 @@ public unsafe partial struct UInt1x4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt1x4 operator /(UInt1x4 left, UInt1x4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt1x4 operator %(UInt1x4 left, UInt1x4 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt1x4 operator *(UInt1x4 left, UInt1x4 right) => default; @@ -505,9 +720,64 @@ public unsafe partial struct UInt1x4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt1x4 operator -(UInt1x4 left, UInt1x4 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator >(UInt1x4 left, UInt1x4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator >=(UInt1x4 left, UInt1x4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator <(UInt1x4 left, UInt1x4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator <=(UInt1x4 left, UInt1x4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator ==(UInt1x4 left, UInt1x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool1x4 operator !=(UInt1x4 left, UInt1x4 right) => default; + /// /// Casts a value to a one. /// @@ -604,6 +874,7 @@ public unsafe partial struct UInt2x1 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2x1 operator +(UInt2x1 left, UInt2x1 right) => default; @@ -612,14 +883,25 @@ public unsafe partial struct UInt2x1 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2x1 operator /(UInt2x1 left, UInt2x1 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt2x1 operator %(UInt2x1 left, UInt2x1 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2x1 operator *(UInt2x1 left, UInt2x1 right) => default; @@ -628,9 +910,64 @@ public unsafe partial struct UInt2x1 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2x1 operator -(UInt2x1 left, UInt2x1 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator >(UInt2x1 left, UInt2x1 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator >=(UInt2x1 left, UInt2x1 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator <(UInt2x1 left, UInt2x1 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator <=(UInt2x1 left, UInt2x1 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator ==(UInt2x1 left, UInt2x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x1 operator !=(UInt2x1 left, UInt2x1 right) => default; + /// /// Casts a value to a one. /// @@ -762,6 +1099,7 @@ public unsafe partial struct UInt2x2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2x2 operator +(UInt2x2 left, UInt2x2 right) => default; @@ -770,14 +1108,25 @@ public unsafe partial struct UInt2x2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2x2 operator /(UInt2x2 left, UInt2x2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt2x2 operator %(UInt2x2 left, UInt2x2 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2x2 operator *(UInt2x2 left, UInt2x2 right) => default; @@ -786,8 +1135,63 @@ public unsafe partial struct UInt2x2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2x2 operator -(UInt2x2 left, UInt2x2 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator >(UInt2x2 left, UInt2x2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator >=(UInt2x2 left, UInt2x2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator <(UInt2x2 left, UInt2x2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator <=(UInt2x2 left, UInt2x2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator ==(UInt2x2 left, UInt2x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x2 operator !=(UInt2x2 left, UInt2x2 right) => default; } /// @@ -938,6 +1342,7 @@ public unsafe partial struct UInt2x3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2x3 operator +(UInt2x3 left, UInt2x3 right) => default; @@ -946,14 +1351,25 @@ public unsafe partial struct UInt2x3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2x3 operator /(UInt2x3 left, UInt2x3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt2x3 operator %(UInt2x3 left, UInt2x3 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2x3 operator *(UInt2x3 left, UInt2x3 right) => default; @@ -962,8 +1378,63 @@ public unsafe partial struct UInt2x3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2x3 operator -(UInt2x3 left, UInt2x3 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator >(UInt2x3 left, UInt2x3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator >=(UInt2x3 left, UInt2x3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator <(UInt2x3 left, UInt2x3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator <=(UInt2x3 left, UInt2x3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator ==(UInt2x3 left, UInt2x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x3 operator !=(UInt2x3 left, UInt2x3 right) => default; } /// @@ -1138,6 +1609,7 @@ public unsafe partial struct UInt2x4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2x4 operator +(UInt2x4 left, UInt2x4 right) => default; @@ -1146,14 +1618,25 @@ public unsafe partial struct UInt2x4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2x4 operator /(UInt2x4 left, UInt2x4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt2x4 operator %(UInt2x4 left, UInt2x4 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2x4 operator *(UInt2x4 left, UInt2x4 right) => default; @@ -1162,8 +1645,63 @@ public unsafe partial struct UInt2x4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2x4 operator -(UInt2x4 left, UInt2x4 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator >(UInt2x4 left, UInt2x4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator >=(UInt2x4 left, UInt2x4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator <(UInt2x4 left, UInt2x4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator <=(UInt2x4 left, UInt2x4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator ==(UInt2x4 left, UInt2x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool2x4 operator !=(UInt2x4 left, UInt2x4 right) => default; } /// @@ -1266,6 +1804,7 @@ public unsafe partial struct UInt3x1 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3x1 operator +(UInt3x1 left, UInt3x1 right) => default; @@ -1274,14 +1813,25 @@ public unsafe partial struct UInt3x1 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3x1 operator /(UInt3x1 left, UInt3x1 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt3x1 operator %(UInt3x1 left, UInt3x1 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3x1 operator *(UInt3x1 left, UInt3x1 right) => default; @@ -1290,9 +1840,64 @@ public unsafe partial struct UInt3x1 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3x1 operator -(UInt3x1 left, UInt3x1 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator >(UInt3x1 left, UInt3x1 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator >=(UInt3x1 left, UInt3x1 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator <(UInt3x1 left, UInt3x1 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator <=(UInt3x1 left, UInt3x1 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator ==(UInt3x1 left, UInt3x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x1 operator !=(UInt3x1 left, UInt3x1 right) => default; + /// /// Casts a value to a one. /// @@ -1449,6 +2054,7 @@ public unsafe partial struct UInt3x2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3x2 operator +(UInt3x2 left, UInt3x2 right) => default; @@ -1457,14 +2063,25 @@ public unsafe partial struct UInt3x2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3x2 operator /(UInt3x2 left, UInt3x2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt3x2 operator %(UInt3x2 left, UInt3x2 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3x2 operator *(UInt3x2 left, UInt3x2 right) => default; @@ -1473,8 +2090,63 @@ public unsafe partial struct UInt3x2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3x2 operator -(UInt3x2 left, UInt3x2 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator >(UInt3x2 left, UInt3x2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator >=(UInt3x2 left, UInt3x2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator <(UInt3x2 left, UInt3x2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator <=(UInt3x2 left, UInt3x2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator ==(UInt3x2 left, UInt3x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x2 operator !=(UInt3x2 left, UInt3x2 right) => default; } /// @@ -1662,6 +2334,7 @@ public unsafe partial struct UInt3x3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3x3 operator +(UInt3x3 left, UInt3x3 right) => default; @@ -1670,14 +2343,25 @@ public unsafe partial struct UInt3x3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3x3 operator /(UInt3x3 left, UInt3x3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt3x3 operator %(UInt3x3 left, UInt3x3 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3x3 operator *(UInt3x3 left, UInt3x3 right) => default; @@ -1686,8 +2370,63 @@ public unsafe partial struct UInt3x3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3x3 operator -(UInt3x3 left, UInt3x3 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator >(UInt3x3 left, UInt3x3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator >=(UInt3x3 left, UInt3x3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator <(UInt3x3 left, UInt3x3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator <=(UInt3x3 left, UInt3x3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator ==(UInt3x3 left, UInt3x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x3 operator !=(UInt3x3 left, UInt3x3 right) => default; } /// @@ -1911,6 +2650,7 @@ public unsafe partial struct UInt3x4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3x4 operator +(UInt3x4 left, UInt3x4 right) => default; @@ -1919,14 +2659,25 @@ public unsafe partial struct UInt3x4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3x4 operator /(UInt3x4 left, UInt3x4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt3x4 operator %(UInt3x4 left, UInt3x4 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3x4 operator *(UInt3x4 left, UInt3x4 right) => default; @@ -1935,8 +2686,63 @@ public unsafe partial struct UInt3x4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt3x4 operator -(UInt3x4 left, UInt3x4 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator >(UInt3x4 left, UInt3x4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator >=(UInt3x4 left, UInt3x4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator <(UInt3x4 left, UInt3x4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator <=(UInt3x4 left, UInt3x4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator ==(UInt3x4 left, UInt3x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool3x4 operator !=(UInt3x4 left, UInt3x4 right) => default; } /// @@ -2050,6 +2856,7 @@ public unsafe partial struct UInt4x1 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4x1 operator +(UInt4x1 left, UInt4x1 right) => default; @@ -2058,14 +2865,25 @@ public unsafe partial struct UInt4x1 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4x1 operator /(UInt4x1 left, UInt4x1 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt4x1 operator %(UInt4x1 left, UInt4x1 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4x1 operator *(UInt4x1 left, UInt4x1 right) => default; @@ -2074,9 +2892,64 @@ public unsafe partial struct UInt4x1 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4x1 operator -(UInt4x1 left, UInt4x1 right) => default; + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator >(UInt4x1 left, UInt4x1 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator >=(UInt4x1 left, UInt4x1 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator <(UInt4x1 left, UInt4x1 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator <=(UInt4x1 left, UInt4x1 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator ==(UInt4x1 left, UInt4x1 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x1 operator !=(UInt4x1 left, UInt4x1 right) => default; + /// /// Casts a value to a one. /// @@ -2258,6 +3131,7 @@ public unsafe partial struct UInt4x2 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4x2 operator +(UInt4x2 left, UInt4x2 right) => default; @@ -2266,14 +3140,25 @@ public unsafe partial struct UInt4x2 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4x2 operator /(UInt4x2 left, UInt4x2 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt4x2 operator %(UInt4x2 left, UInt4x2 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4x2 operator *(UInt4x2 left, UInt4x2 right) => default; @@ -2282,8 +3167,63 @@ public unsafe partial struct UInt4x2 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4x2 operator -(UInt4x2 left, UInt4x2 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator >(UInt4x2 left, UInt4x2 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator >=(UInt4x2 left, UInt4x2 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator <(UInt4x2 left, UInt4x2 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator <=(UInt4x2 left, UInt4x2 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator ==(UInt4x2 left, UInt4x2 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x2 operator !=(UInt4x2 left, UInt4x2 right) => default; } /// @@ -2508,6 +3448,7 @@ public unsafe partial struct UInt4x3 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4x3 operator +(UInt4x3 left, UInt4x3 right) => default; @@ -2516,14 +3457,25 @@ public unsafe partial struct UInt4x3 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4x3 operator /(UInt4x3 left, UInt4x3 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt4x3 operator %(UInt4x3 left, UInt4x3 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4x3 operator *(UInt4x3 left, UInt4x3 right) => default; @@ -2532,8 +3484,63 @@ public unsafe partial struct UInt4x3 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4x3 operator -(UInt4x3 left, UInt4x3 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator >(UInt4x3 left, UInt4x3 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator >=(UInt4x3 left, UInt4x3 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator <(UInt4x3 left, UInt4x3 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator <=(UInt4x3 left, UInt4x3 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator ==(UInt4x3 left, UInt4x3 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x3 operator !=(UInt4x3 left, UInt4x3 right) => default; } /// @@ -2806,6 +3813,7 @@ public unsafe partial struct UInt4x4 /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4x4 operator +(UInt4x4 left, UInt4x4 right) => default; @@ -2814,14 +3822,25 @@ public unsafe partial struct UInt4x4 /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4x4 operator /(UInt4x4 left, UInt4x4 right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static UInt4x4 operator %(UInt4x4 left, UInt4x4 right) => default; + /// /// Multiplies two values (elementwise product). /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4x4 operator *(UInt4x4 left, UInt4x4 right) => default; @@ -2830,6 +3849,61 @@ public unsafe partial struct UInt4x4 /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt4x4 operator -(UInt4x4 left, UInt4x4 right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator >(UInt4x4 left, UInt4x4 right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator >=(UInt4x4 left, UInt4x4 right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator <(UInt4x4 left, UInt4x4 right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator <=(UInt4x4 left, UInt4x4 right) => default; + + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator ==(UInt4x4 left, UInt4x4 right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool4x4 operator !=(UInt4x4 left, UInt4x4 right) => default; } diff --git a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude index de653781..a0876551 100644 --- a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude @@ -66,6 +66,7 @@ using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServic #endif #nullable enable +#pragma warning disable CS0660, CS0661 namespace ComputeSharp; @@ -234,6 +235,7 @@ public unsafe partial struct <#=typeName#> /// Negates a value. /// /// The value to negate. + /// The negated value of . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=typeName#> operator <#=operatorName#>(<#=typeName#> <#=argumentName#>) => default; <# @@ -249,6 +251,7 @@ public unsafe partial struct <#=typeName#> /// /// The first value to sum. /// The second value to sum. + /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=typeName#> operator +(<#=typeName#> left, <#=typeName#> right) => default; @@ -257,14 +260,25 @@ public unsafe partial struct <#=typeName#> /// /// The first value to divide. /// The second value to divide. + /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=typeName#> operator /(<#=typeName#> left, <#=typeName#> right) => default; + /// + /// Calculates the remainder of the division between two values. + /// + /// The first value to divide. + /// The second value to divide. + /// The remainder of dividing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static <#=typeName#> operator %(<#=typeName#> left, <#=typeName#> right) => default; + /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. + /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=typeName#> operator *(<#=typeName#> left, <#=typeName#> right) => default; @@ -273,10 +287,68 @@ public unsafe partial struct <#=typeName#> /// /// The first value to subtract. /// The second value to subtract. + /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static <#=typeName#> operator -(<#=typeName#> left, <#=typeName#> right) => default; + + /// + /// Compares two values to see if the first is greater than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool<#=i#> operator >(<#=typeName#> left, <#=typeName#> right) => default; + + /// + /// Compares two values to see if the first is greater than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool<#=i#> operator >=(<#=typeName#> left, <#=typeName#> right) => default; + + /// + /// Compares two values to see if the first is lower than the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool<#=i#> operator <(<#=typeName#> left, <#=typeName#> right) => default; + + /// + /// Compares two values to see if the first is lower than or equal to the second. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool<#=i#> operator <=(<#=typeName#> left, <#=typeName#> right) => default; <# } + + WriteLine(""); +#> + /// + /// Compares two values to see if they are equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool<#=i#> operator ==(<#=typeName#> left, <#=typeName#> right) => default; + + /// + /// Compares two values to see if they are not equal. + /// + /// The first value to compare. + /// The second value to compare. + /// The result of comparing and . + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public static Bool<#=i#> operator !=(<#=typeName#> left, <#=typeName#> right) => default; +<# #> } <#