diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs
index ee4096bb..0fb6dc1b 100644
--- a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs
+++ b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs
@@ -543,6 +543,106 @@ public unsafe partial struct Int2
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2 operator <=(Int2 left, Int2 right) => default;
+ ///
+ /// 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 Int2 operator ~(Int2 xy) => 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 Int2 operator >>(Int2 xy, Int2 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 Int2 operator >>(Int2 xy, UInt2 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 Int2 operator <<(Int2 xy, Int2 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 Int2 operator <<(Int2 xy, UInt2 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 Int2 operator &(Int2 left, Int2 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 Int2 operator &(Int2 left, UInt2 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 Int2 operator |(Int2 left, Int2 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 Int2 operator |(Int2 left, UInt2 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 Int2 operator ^(Int2 left, Int2 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 Int2 operator ^(Int2 left, UInt2 right) => default;
+
///
/// Compares two values to see if they are equal.
///
diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs
index c4dce83c..086c6910 100644
--- a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs
+++ b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs
@@ -1629,6 +1629,106 @@ public unsafe partial struct Int3
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3 operator <=(Int3 left, Int3 right) => default;
+ ///
+ /// 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 Int3 operator ~(Int3 xyz) => 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 Int3 operator >>(Int3 xyz, Int3 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 Int3 operator >>(Int3 xyz, UInt3 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 Int3 operator <<(Int3 xyz, Int3 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 Int3 operator <<(Int3 xyz, UInt3 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 Int3 operator &(Int3 left, Int3 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 Int3 operator &(Int3 left, UInt3 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 Int3 operator |(Int3 left, Int3 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 Int3 operator |(Int3 left, UInt3 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 Int3 operator ^(Int3 left, Int3 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 Int3 operator ^(Int3 left, UInt3 right) => default;
+
///
/// Compares two values to see if they are equal.
///
diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs
index fd0e40c1..fbcf0214 100644
--- a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs
+++ b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs
@@ -4275,6 +4275,106 @@ public unsafe partial struct Int4
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4 operator <=(Int4 left, Int4 right) => default;
+ ///
+ /// 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 Int4 operator ~(Int4 xyzw) => 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 Int4 operator >>(Int4 xyzw, Int4 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 Int4 operator >>(Int4 xyzw, UInt4 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 Int4 operator <<(Int4 xyzw, Int4 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 Int4 operator <<(Int4 xyzw, UInt4 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 Int4 operator &(Int4 left, Int4 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 Int4 operator &(Int4 left, UInt4 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 Int4 operator |(Int4 left, Int4 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 Int4 operator |(Int4 left, UInt4 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 Int4 operator ^(Int4 left, Int4 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 Int4 operator ^(Int4 left, UInt4 right) => default;
+
///
/// Compares two values to see if they are equal.
///
diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs
index e3ab439d..7fdeb3ec 100644
--- a/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs
+++ b/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs
@@ -535,6 +535,106 @@ public unsafe partial struct UInt2
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool2 operator <=(UInt2 left, UInt2 right) => default;
+ ///
+ /// 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 UInt2 operator ~(UInt2 xy) => 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 UInt2 operator >>(UInt2 xy, Int2 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 UInt2 operator >>(UInt2 xy, UInt2 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 UInt2 operator <<(UInt2 xy, Int2 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 UInt2 operator <<(UInt2 xy, UInt2 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 UInt2 operator &(UInt2 left, Int2 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 UInt2 operator &(UInt2 left, UInt2 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 UInt2 operator |(UInt2 left, Int2 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 UInt2 operator |(UInt2 left, UInt2 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 UInt2 operator ^(UInt2 left, Int2 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 UInt2 operator ^(UInt2 left, UInt2 right) => default;
+
///
/// Compares two values to see if they are equal.
///
diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs
index e7afaa1d..8afabad5 100644
--- a/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs
+++ b/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs
@@ -1621,6 +1621,106 @@ public unsafe partial struct UInt3
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool3 operator <=(UInt3 left, UInt3 right) => default;
+ ///
+ /// 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 UInt3 operator ~(UInt3 xyz) => 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 UInt3 operator >>(UInt3 xyz, Int3 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 UInt3 operator >>(UInt3 xyz, UInt3 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 UInt3 operator <<(UInt3 xyz, Int3 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 UInt3 operator <<(UInt3 xyz, UInt3 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 UInt3 operator &(UInt3 left, Int3 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 UInt3 operator &(UInt3 left, UInt3 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 UInt3 operator |(UInt3 left, Int3 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 UInt3 operator |(UInt3 left, UInt3 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 UInt3 operator ^(UInt3 left, Int3 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 UInt3 operator ^(UInt3 left, UInt3 right) => default;
+
///
/// Compares two values to see if they are equal.
///
diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs
index 4ef9a6cf..83db512a 100644
--- a/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs
+++ b/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs
@@ -4267,6 +4267,106 @@ public unsafe partial struct UInt4
/// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.
public static Bool4 operator <=(UInt4 left, UInt4 right) => default;
+ ///
+ /// 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 UInt4 operator ~(UInt4 xyzw) => 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 UInt4 operator >>(UInt4 xyzw, Int4 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 UInt4 operator >>(UInt4 xyzw, UInt4 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 UInt4 operator <<(UInt4 xyzw, Int4 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 UInt4 operator <<(UInt4 xyzw, UInt4 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 UInt4 operator &(UInt4 left, Int4 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 UInt4 operator &(UInt4 left, UInt4 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 UInt4 operator |(UInt4 left, Int4 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 UInt4 operator |(UInt4 left, UInt4 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 UInt4 operator ^(UInt4 left, Int4 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 UInt4 operator ^(UInt4 left, UInt4 right) => default;
+
///
/// Compares two values to see if they are equal.
///
diff --git a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude
index 8f52a8e0..e2258729 100644
--- a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude
+++ b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude
@@ -392,6 +392,115 @@ public unsafe partial struct <#=typeName#>
<#
}
+ // Generate the bitwise operators
+ if (elementTypeName == "Int" || elementTypeName == "UInt")
+ {
+ string argumentName = "xyzw".Substring(0, i);
+
+ 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 <#=typeName#> operator ~(<#=typeName#> <#=argumentName#>) => 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 <#=typeName#> operator >>(<#=typeName#> <#=argumentName#>, Int<#=i#> 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 <#=typeName#> operator >>(<#=typeName#> <#=argumentName#>, UInt<#=i#> 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 <#=typeName#> operator <<(<#=typeName#> <#=argumentName#>, Int<#=i#> 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 <#=typeName#> operator <<(<#=typeName#> <#=argumentName#>, UInt<#=i#> 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 <#=typeName#> operator &(<#=typeName#> left, Int<#=i#> 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 <#=typeName#> operator &(<#=typeName#> left, UInt<#=i#> 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 <#=typeName#> operator |(<#=typeName#> left, Int<#=i#> 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 <#=typeName#> operator |(<#=typeName#> left, UInt<#=i#> 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 <#=typeName#> operator ^(<#=typeName#> left, Int<#=i#> 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 <#=typeName#> operator ^(<#=typeName#> left, UInt<#=i#> right) => default;
+<#
+ }
+
WriteLine("");
#>
///