using System; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #nullable enable #pragma warning disable CS0660, CS0661 namespace ComputeSharp; /// [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)] public unsafe partial struct UInt2 { [FieldOffset(0)] private uint x; [FieldOffset(4)] private uint y; /// /// Creates a new instance with the specified parameters. /// /// The value to assign to the first vector component. /// The value to assign to the second vector component. public UInt2(uint x, uint y) { this.x = x; this.y = y; } /// /// Gets a reference to a specific component in the current instance. /// /// The index of the component to access. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public ref uint this[int i] => ref *(uint*)UndefinedData.Memory; /// /// Gets a value with all components set to 0. /// public static UInt2 Zero => 0; /// /// Gets a value with all components set to 1. /// public static UInt2 One => 1; /// /// Gets a value with the component set to 1, and the others to 0. /// public static UInt2 UnitX => new(1, 0); /// /// Gets a value with the component set to 1, and the others to 0. /// public static UInt2 UnitY => new(0, 1); /// /// Gets a reference to the value representing the X component. /// [UnscopedRef] public ref uint X => ref this.x; /// /// Gets a reference to the value representing the Y component. /// [UnscopedRef] public ref uint Y => ref this.y; /// /// Gets a readonly reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt2 XX => ref *(UInt2*)UndefinedData.Memory; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public ref UInt2 XY => ref *(UInt2*)UndefinedData.Memory; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public ref UInt2 YX => ref *(UInt2*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt2 YY => ref *(UInt2*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt3 XXX => ref *(UInt3*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt3 XXY => ref *(UInt3*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt3 XYX => ref *(UInt3*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt3 XYY => ref *(UInt3*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt3 YXX => ref *(UInt3*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt3 YXY => ref *(UInt3*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt3 YYX => ref *(UInt3*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt3 YYY => ref *(UInt3*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 XXXX => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 XXXY => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 XXYX => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 XXYY => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 XYXX => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 XYXY => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 XYYX => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 XYYY => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 YXXX => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 YXXY => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 YXYX => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 YXYY => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 YYXX => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 YYXY => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 YYYX => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 YYYY => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a reference to the value representing the R component. /// [UnscopedRef] public ref uint R => ref this.x; /// /// Gets a reference to the value representing the G component. /// [UnscopedRef] public ref uint G => ref this.y; /// /// Gets a readonly reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt2 RR => ref *(UInt2*)UndefinedData.Memory; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public ref UInt2 RG => ref *(UInt2*)UndefinedData.Memory; /// /// Gets a reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public ref UInt2 GR => ref *(UInt2*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt2 GG => ref *(UInt2*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt3 RRR => ref *(UInt3*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt3 RRG => ref *(UInt3*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt3 RGR => ref *(UInt3*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt3 RGG => ref *(UInt3*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt3 GRR => ref *(UInt3*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt3 GRG => ref *(UInt3*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt3 GGR => ref *(UInt3*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt3 GGG => ref *(UInt3*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 RRRR => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 RRRG => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 RRGR => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 RRGG => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 RGRR => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 RGRG => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 RGGR => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 RGGG => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 GRRR => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 GRRG => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 GRGR => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 GRGG => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 GGRR => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 GGRG => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 GGGR => ref *(UInt4*)UndefinedData.Memory; /// /// Gets a readonly reference to the value with the components , , , . /// /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. [UnscopedRef] public readonly ref readonly UInt4 GGGG => ref *(UInt4*)UndefinedData.Memory; /// public override readonly string ToString() { string separator = NumberFormatInfo.CurrentInfo.NumberGroupSeparator; return $"<{this.x}{separator} {this.y}>"; } /// /// Creates a new value with the same value for all its components. /// /// The value to use for the components of the new instance. public static implicit operator UInt2(uint x) => new(x, x); /// /// Casts a value to a one. /// /// The input value to cast. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static implicit operator Float2(UInt2 xy) => default; /// /// Casts a value to a one. /// /// The input value to cast. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static implicit operator Double2(UInt2 xy) => default; /// /// Casts a value to a one. /// /// The input value to cast. /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static explicit operator Int2(UInt2 xy) => default; /// /// Sums two values. /// /// The first value to sum. /// The second value to sum. /// The result of adding and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2 operator +(UInt2 left, UInt2 right) => default; /// /// Divides two values. /// /// The first value to divide. /// The second value to divide. /// The result of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2 operator /(UInt2 left, UInt2 right) => default; /// /// Calculates the remainder of the division between two values. /// /// The first value to divide. /// The second value to divide. /// The remainder of dividing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2 operator %(UInt2 left, UInt2 right) => default; /// /// Multiplies two values. /// /// The first value to multiply. /// The second value to multiply. /// The result of multiplying and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2 operator *(UInt2 left, UInt2 right) => default; /// /// Subtracts two values. /// /// The first value to subtract. /// The second value to subtract. /// The result of subtracting and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static UInt2 operator -(UInt2 left, UInt2 right) => default; /// /// Compares two values to see if the first is greater than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool2 operator >(UInt2 left, UInt2 right) => default; /// /// Compares two values to see if the first is greater than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool2 operator >=(UInt2 left, UInt2 right) => default; /// /// Compares two values to see if the first is lower than the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool2 operator <(UInt2 left, UInt2 right) => default; /// /// Compares two values to see if the first is lower than or equal to the second. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool2 operator <=(UInt2 left, UInt2 right) => default; /// /// 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; /// /// 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. /// /// 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, 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. /// /// 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; /// /// 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. /// /// 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, 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. /// /// 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, 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. /// /// 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. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool2 operator ==(UInt2 left, UInt2 right) => default; /// /// Compares two values to see if they are not equal. /// /// The first value to compare. /// The second value to compare. /// The result of comparing and . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Bool2 operator !=(UInt2 left, UInt2 right) => default; }