ファイル
ComputeSharp/src/ComputeSharp.Core/Primitives/UInt/UInt2.g.cs
T

799 行
46 KiB
C#

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