From 25191af0afa4117da0e70918e13d9f2599597ff6 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Thu, 25 Aug 2022 01:11:16 +0200 Subject: [PATCH] Add bitwise operators to HLSL matrix types --- .../Primitives/Int/IntMxN.g.cs | 1600 +++++++++++++++++ .../Primitives/MatrixType.ttinclude | 107 ++ .../Primitives/UInt/UIntMxN.g.cs | 1600 +++++++++++++++++ 3 files changed, 3307 insertions(+) diff --git a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs index bb2411c6..d6bde9d3 100644 --- a/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/IntMxN.g.cs @@ -170,6 +170,106 @@ public unsafe partial struct Int1x1 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 Int1x1 operator ~(Int1x1 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int1x1 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt1x1 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int1x1 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt1x1 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt1x1 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt1x1 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt1x1 right) => default; + /// /// Compares two values to see if they are equal. /// @@ -361,6 +461,106 @@ public unsafe partial struct Int1x2 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 Int1x2 operator ~(Int1x2 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int1x2 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt1x2 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int1x2 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt1x2 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt1x2 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt1x2 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt1x2 right) => default; + /// /// Compares two values to see if they are equal. /// @@ -569,6 +769,106 @@ public unsafe partial struct Int1x3 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 Int1x3 operator ~(Int1x3 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int1x3 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt1x3 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int1x3 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt1x3 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt1x3 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt1x3 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt1x3 right) => default; + /// /// Compares two values to see if they are equal. /// @@ -788,6 +1088,106 @@ public unsafe partial struct Int1x4 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 Int1x4 operator ~(Int1x4 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int1x4 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt1x4 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int1x4 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt1x4 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt1x4 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt1x4 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt1x4 right) => default; + /// /// Compares two values to see if they are equal. /// @@ -985,6 +1385,106 @@ public unsafe partial struct Int2x1 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 Int2x1 operator ~(Int2x1 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int2x1 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt2x1 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int2x1 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt2x1 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt2x1 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt2x1 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt2x1 right) => default; + /// /// Compares two values to see if they are equal. /// @@ -1217,6 +1717,106 @@ public unsafe partial struct Int2x2 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 Int2x2 operator ~(Int2x2 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int2x2 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt2x2 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int2x2 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt2x2 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt2x2 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt2x2 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt2x2 right) => default; + /// /// Compares two values to see if they are equal. /// @@ -1467,6 +2067,106 @@ public unsafe partial struct Int2x3 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 Int2x3 operator ~(Int2x3 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int2x3 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt2x3 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int2x3 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt2x3 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt2x3 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt2x3 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt2x3 right) => default; + /// /// Compares two values to see if they are equal. /// @@ -1741,6 +2441,106 @@ public unsafe partial struct Int2x4 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 Int2x4 operator ~(Int2x4 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int2x4 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt2x4 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int2x4 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt2x4 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt2x4 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt2x4 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt2x4 right) => default; + /// /// Compares two values to see if they are equal. /// @@ -1943,6 +2743,106 @@ public unsafe partial struct Int3x1 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 Int3x1 operator ~(Int3x1 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int3x1 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt3x1 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int3x1 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt3x1 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt3x1 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt3x1 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt3x1 right) => default; + /// /// Compares two values to see if they are equal. /// @@ -2200,6 +3100,106 @@ public unsafe partial struct Int3x2 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 Int3x2 operator ~(Int3x2 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int3x2 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt3x2 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int3x2 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt3x2 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt3x2 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt3x2 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt3x2 right) => default; + /// /// Compares two values to see if they are equal. /// @@ -2487,6 +3487,106 @@ public unsafe partial struct Int3x3 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 Int3x3 operator ~(Int3x3 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int3x3 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt3x3 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int3x3 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt3x3 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt3x3 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt3x3 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt3x3 right) => default; + /// /// Compares two values to see if they are equal. /// @@ -2810,6 +3910,106 @@ public unsafe partial struct Int3x4 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 Int3x4 operator ~(Int3x4 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int3x4 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt3x4 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int3x4 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt3x4 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt3x4 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt3x4 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt3x4 right) => default; + /// /// Compares two values to see if they are equal. /// @@ -3023,6 +4223,106 @@ public unsafe partial struct Int4x1 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 Int4x1 operator ~(Int4x1 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int4x1 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt4x1 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int4x1 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt4x1 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt4x1 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt4x1 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt4x1 right) => default; + /// /// Compares two values to see if they are equal. /// @@ -3305,6 +4605,106 @@ public unsafe partial struct Int4x2 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 Int4x2 operator ~(Int4x2 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int4x2 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt4x2 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int4x2 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt4x2 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt4x2 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt4x2 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt4x2 right) => default; + /// /// Compares two values to see if they are equal. /// @@ -3629,6 +5029,106 @@ public unsafe partial struct Int4x3 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 Int4x3 operator ~(Int4x3 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int4x3 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt4x3 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int4x3 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt4x3 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt4x3 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt4x3 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt4x3 right) => default; + /// /// Compares two values to see if they are equal. /// @@ -4001,6 +5501,106 @@ public unsafe partial struct Int4x4 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 Int4x4 operator ~(Int4x4 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int4x4 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt4x4 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int4x4 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt4x4 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt4x4 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt4x4 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt4x4 right) => default; + /// /// Compares two values to see if they are equal. /// diff --git a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude index 074a3c70..552b6a55 100644 --- a/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/MatrixType.ttinclude @@ -301,6 +301,113 @@ public unsafe partial struct <#=fullTypeName#> <# } + // Generate the bitwise operators + if (typeName == "Int" || typeName == "UInt") + { + WriteLine(""); +#> + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 <#=fullTypeName#> operator ~(<#=fullTypeName#> matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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#> matrix, Int<#=rows#>x<#=columns#> amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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#> matrix, UInt<#=rows#>x<#=columns#> amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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#> matrix, Int<#=rows#>x<#=columns#> amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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#> matrix, UInt<#=rows#>x<#=columns#> amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int<#=rows#>x<#=columns#> right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, UInt<#=rows#>x<#=columns#> right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int<#=rows#>x<#=columns#> right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, UInt<#=rows#>x<#=columns#> right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int<#=rows#>x<#=columns#> right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, UInt<#=rows#>x<#=columns#> right) => default; +<# + } + WriteLine(""); #> /// diff --git a/src/ComputeSharp.Core/Primitives/UInt/UIntMxN.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UIntMxN.g.cs index 4527f17f..4a5fefa6 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UIntMxN.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UIntMxN.g.cs @@ -163,6 +163,106 @@ public unsafe partial struct UInt1x1 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 UInt1x1 operator ~(UInt1x1 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int1x1 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt1x1 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int1x1 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt1x1 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int1x1 right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int1x1 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int1x1 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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 they are equal. /// @@ -347,6 +447,106 @@ public unsafe partial struct UInt1x2 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 UInt1x2 operator ~(UInt1x2 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int1x2 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt1x2 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int1x2 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt1x2 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int1x2 right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int1x2 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int1x2 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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 they are equal. /// @@ -548,6 +748,106 @@ public unsafe partial struct UInt1x3 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 UInt1x3 operator ~(UInt1x3 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int1x3 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt1x3 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int1x3 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt1x3 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int1x3 right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int1x3 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int1x3 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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 they are equal. /// @@ -760,6 +1060,106 @@ public unsafe partial struct UInt1x4 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 UInt1x4 operator ~(UInt1x4 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int1x4 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt1x4 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int1x4 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt1x4 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int1x4 right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int1x4 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int1x4 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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 they are equal. /// @@ -950,6 +1350,106 @@ public unsafe partial struct UInt2x1 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 UInt2x1 operator ~(UInt2x1 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int2x1 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt2x1 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int2x1 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt2x1 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int2x1 right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int2x1 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int2x1 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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 they are equal. /// @@ -1175,6 +1675,106 @@ public unsafe partial struct UInt2x2 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 UInt2x2 operator ~(UInt2x2 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int2x2 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt2x2 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int2x2 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt2x2 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int2x2 right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int2x2 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int2x2 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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 they are equal. /// @@ -1418,6 +2018,106 @@ public unsafe partial struct UInt2x3 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 UInt2x3 operator ~(UInt2x3 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int2x3 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt2x3 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int2x3 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt2x3 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int2x3 right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int2x3 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int2x3 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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 they are equal. /// @@ -1685,6 +2385,106 @@ public unsafe partial struct UInt2x4 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 UInt2x4 operator ~(UInt2x4 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int2x4 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt2x4 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int2x4 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt2x4 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int2x4 right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int2x4 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int2x4 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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 they are equal. /// @@ -1880,6 +2680,106 @@ public unsafe partial struct UInt3x1 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 UInt3x1 operator ~(UInt3x1 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int3x1 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt3x1 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int3x1 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt3x1 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int3x1 right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int3x1 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int3x1 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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 they are equal. /// @@ -2130,6 +3030,106 @@ public unsafe partial struct UInt3x2 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 UInt3x2 operator ~(UInt3x2 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int3x2 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt3x2 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int3x2 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt3x2 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int3x2 right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int3x2 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int3x2 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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 they are equal. /// @@ -2410,6 +3410,106 @@ public unsafe partial struct UInt3x3 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 UInt3x3 operator ~(UInt3x3 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int3x3 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt3x3 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int3x3 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt3x3 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int3x3 right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int3x3 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int3x3 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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 they are equal. /// @@ -2726,6 +3826,106 @@ public unsafe partial struct UInt3x4 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 UInt3x4 operator ~(UInt3x4 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int3x4 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt3x4 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int3x4 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt3x4 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int3x4 right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int3x4 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int3x4 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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 they are equal. /// @@ -2932,6 +4132,106 @@ public unsafe partial struct UInt4x1 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 UInt4x1 operator ~(UInt4x1 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int4x1 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt4x1 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int4x1 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt4x1 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int4x1 right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int4x1 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int4x1 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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 they are equal. /// @@ -3207,6 +4507,106 @@ public unsafe partial struct UInt4x2 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 UInt4x2 operator ~(UInt4x2 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int4x2 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt4x2 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int4x2 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt4x2 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int4x2 right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int4x2 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int4x2 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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 they are equal. /// @@ -3524,6 +4924,106 @@ public unsafe partial struct UInt4x3 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 UInt4x3 operator ~(UInt4x3 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int4x3 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt4x3 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int4x3 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt4x3 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int4x3 right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int4x3 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int4x3 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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 they are equal. /// @@ -3889,6 +5389,106 @@ public unsafe partial struct UInt4x4 /// This method 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; + /// + /// Bitwise negates a value. + /// + /// The value to bitwise negate. + /// The bitwise 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 UInt4x4 operator ~(UInt4x4 matrix) => default; + +#if NEEDS_CSHARP_11 + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, Int4x4 amount) => default; + + /// + /// Shifts right a value. + /// + /// The value to shift right. + /// The amount to shift each element right by. + /// The result of shifting right by . + /// This method 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 matrix, UInt4x4 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, Int4x4 amount) => default; + + /// + /// Shifts left a value. + /// + /// The value to shift left. + /// The amount to shift each element left by. + /// The result of shifting left by . + /// This method 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 matrix, UInt4x4 amount) => default; +#endif + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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, Int4x4 right) => default; + + /// + /// Bitwise ands a value. + /// + /// The value to bitwise and. + /// The value to combine. + /// The result of performing the bitwise and between and . + /// This method 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; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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, Int4x4 right) => default; + + /// + /// Bitwise ors a value. + /// + /// The value to bitwise or. + /// The value to combine. + /// The result of performing the bitwise or between and . + /// This method 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; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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, Int4x4 right) => default; + + /// + /// Bitwise xors a value. + /// + /// The value to bitwise xor. + /// The value to combine. + /// The result of performing the bitwise xor between and . + /// This method 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 they are equal. ///