diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs index 6074658f..0720e4f4 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int2.g.cs @@ -695,6 +695,24 @@ 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 Int2 operator ~(Int2 xy) => 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, int 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, uint amount) => default; + /// /// Shifts right a value. /// @@ -713,6 +731,24 @@ 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 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, int 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, uint amount) => default; + /// /// Shifts left a value. /// @@ -731,6 +767,24 @@ 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 Int2 operator <<(Int2 xy, UInt2 amount) => 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, int 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, uint right) => default; + /// /// Bitwise ands a value. /// @@ -749,6 +803,24 @@ 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 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, int 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, uint right) => default; + /// /// Bitwise ors a value. /// @@ -767,6 +839,24 @@ 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 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, int 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, uint right) => default; + /// /// Bitwise xors a value. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs index cd7af4ec..d3cb66be 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int3.g.cs @@ -2035,6 +2035,24 @@ 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 Int3 operator ~(Int3 xyz) => 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, int 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, uint amount) => default; + /// /// Shifts right a value. /// @@ -2053,6 +2071,24 @@ 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 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, int 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, uint amount) => default; + /// /// Shifts left a value. /// @@ -2071,6 +2107,24 @@ 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 Int3 operator <<(Int3 xyz, UInt3 amount) => 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, int 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, uint right) => default; + /// /// Bitwise ands a value. /// @@ -2089,6 +2143,24 @@ 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 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, int 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, uint right) => default; + /// /// Bitwise ors a value. /// @@ -2107,6 +2179,24 @@ 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 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, int 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, uint right) => default; + /// /// Bitwise xors a value. /// diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs index 9ce5baf6..ce557c50 100644 --- a/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs +++ b/src/ComputeSharp.Core/Primitives/Int/Int4.g.cs @@ -5372,6 +5372,24 @@ 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 Int4 operator ~(Int4 xyzw) => 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, int 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, uint amount) => default; + /// /// Shifts right a value. /// @@ -5390,6 +5408,24 @@ 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 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, int 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, uint amount) => default; + /// /// Shifts left a value. /// @@ -5408,6 +5444,24 @@ 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 Int4 operator <<(Int4 xyzw, UInt4 amount) => 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, int 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, uint right) => default; + /// /// Bitwise ands a value. /// @@ -5426,6 +5480,24 @@ 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 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, int 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, uint right) => default; + /// /// Bitwise ors a value. /// @@ -5444,6 +5516,24 @@ 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 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, int 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, uint right) => default; + /// /// Bitwise xors a value. /// diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs index 6551999b..292e49db 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs @@ -598,6 +598,24 @@ 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 UInt2 operator ~(UInt2 xy) => 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, int 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, uint amount) => default; + /// /// Shifts right a value. /// @@ -616,6 +634,24 @@ 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 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, int 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, uint amount) => default; + /// /// Shifts left a value. /// @@ -634,6 +670,24 @@ 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 UInt2 operator <<(UInt2 xy, UInt2 amount) => 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, int 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, uint right) => default; + /// /// Bitwise ands a value. /// @@ -652,6 +706,24 @@ 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 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, int 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, uint right) => default; + /// /// Bitwise ors a value. /// @@ -670,6 +742,24 @@ 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 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, int 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, uint right) => default; + /// /// Bitwise xors a value. /// diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs index 476c29af..356b166c 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt3.g.cs @@ -1938,6 +1938,24 @@ 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 UInt3 operator ~(UInt3 xyz) => 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, int 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, uint amount) => default; + /// /// Shifts right a value. /// @@ -1956,6 +1974,24 @@ 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 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, int 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, uint amount) => default; + /// /// Shifts left a value. /// @@ -1974,6 +2010,24 @@ 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 UInt3 operator <<(UInt3 xyz, UInt3 amount) => 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, int 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, uint right) => default; + /// /// Bitwise ands a value. /// @@ -1992,6 +2046,24 @@ 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 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, int 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, uint right) => default; + /// /// Bitwise ors a value. /// @@ -2010,6 +2082,24 @@ 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 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, int 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, uint right) => default; + /// /// Bitwise xors a value. /// diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs b/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs index ab95b605..eaf516f7 100644 --- a/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs +++ b/src/ComputeSharp.Core/Primitives/UInt/UInt4.g.cs @@ -5275,6 +5275,24 @@ 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 UInt4 operator ~(UInt4 xyzw) => 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, int 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, uint amount) => default; + /// /// Shifts right a value. /// @@ -5293,6 +5311,24 @@ 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 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, int 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, uint amount) => default; + /// /// Shifts left a value. /// @@ -5311,6 +5347,24 @@ 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 UInt4 operator <<(UInt4 xyzw, UInt4 amount) => 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, int 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, uint right) => default; + /// /// Bitwise ands a value. /// @@ -5329,6 +5383,24 @@ 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 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, int 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, uint right) => default; + /// /// Bitwise ors a value. /// @@ -5347,6 +5419,24 @@ 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 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, int 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, uint right) => default; + /// /// Bitwise xors a value. /// diff --git a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude index 7d964bf7..88f9ac0b 100644 --- a/src/ComputeSharp.Core/Primitives/VectorType.ttinclude +++ b/src/ComputeSharp.Core/Primitives/VectorType.ttinclude @@ -480,6 +480,24 @@ public unsafe partial struct <#=typeName#> /// This method 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; + /// + /// 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 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 amount) => default; + /// /// Shifts right a value. /// @@ -498,6 +516,24 @@ public unsafe partial struct <#=typeName#> /// This method 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 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 amount) => default; + /// /// Shifts left a value. /// @@ -516,6 +552,24 @@ public unsafe partial struct <#=typeName#> /// This method 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; + /// + /// 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 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 right) => default; + /// /// Bitwise ands a value. /// @@ -534,6 +588,24 @@ public unsafe partial struct <#=typeName#> /// This method 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 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 right) => default; + /// /// Bitwise ors a value. /// @@ -552,6 +624,24 @@ public unsafe partial struct <#=typeName#> /// This method 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 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 right) => default; + /// /// Bitwise xors a value. ///