using System; using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; #if !NET6_0_OR_GREATER using RuntimeHelpers = ComputeSharp.Core.NetStandard.System.Runtime.CompilerServices.RuntimeHelpers; using MemoryMarshal = ComputeSharp.Core.NetStandard.System.Runtime.InteropServices.MemoryMarshal; #endif #nullable enable #pragma warning disable CS0660, CS0661 namespace ComputeSharp; /// [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] public unsafe partial struct Int3 #if NET6_0_OR_GREATER : ISpanFormattable #endif { /// /// A private buffer to which the undefined properties will point to. /// private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int3), sizeof(Int4)); [FieldOffset(0)] private int x; [FieldOffset(4)] private int y; [FieldOffset(8)] private int z; /// /// 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. public readonly ref int this[int i] => ref *(int*)UndefinedData; /// /// Gets a value with all components set to 0. /// public static Int3 Zero => 0; /// /// Gets a value with all components set to 1. /// public static Int3 One => 1; /// /// Gets a reference to the value representing the X component. /// public readonly ref int X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); /// /// Gets a reference to the value representing the Y component. /// public readonly ref int Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); /// /// Gets a reference to the value representing the Z component. /// public readonly ref int Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); /// /// 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. public readonly ref readonly Int2 XX => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref Int2 XY => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref Int2 XZ => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref Int2 YX => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref readonly Int2 YY => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref Int2 YZ => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref Int2 ZX => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref Int2 ZY => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref readonly Int2 ZZ => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref readonly Int3 XXX => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 XXY => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 XXZ => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 XYX => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 XYY => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref Int3 XYZ => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 XZX => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref Int3 XZY => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 XZZ => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 YXX => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 YXY => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref Int3 YXZ => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 YYX => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 YYY => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 YYZ => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref Int3 YZX => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 YZY => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 YZZ => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 ZXX => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref Int3 ZXY => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 ZXZ => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref Int3 ZYX => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 ZYY => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 ZYZ => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 ZZX => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 ZZY => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 ZZZ => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XXXX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XXXY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XXXZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XXYX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XXYY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XXYZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XXZX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XXZY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XXZZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XYXX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XYXY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XYXZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XYYX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XYYY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XYYZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XYZX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XYZY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XYZZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XZXX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XZXY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XZXZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XZYX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XZYY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XZYZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XZZX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XZZY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 XZZZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YXXX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YXXY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YXXZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YXYX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YXYY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YXYZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YXZX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YXZY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YXZZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YYXX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YYXY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YYXZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YYYX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YYYY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YYYZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YYZX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YYZY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YYZZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YZXX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YZXY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YZXZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YZYX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YZYY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YZYZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YZZX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YZZY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 YZZZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZXXX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZXXY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZXXZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZXYX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZXYY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZXYZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZXZX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZXZY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZXZZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZYXX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZYXY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZYXZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZYYX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZYYY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZYYZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZYZX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZYZY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZYZZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZZXX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZZXY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZZXZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZZYX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZZYY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZZYZ => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZZZX => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZZZY => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 ZZZZ => ref *(Int4*)UndefinedData; /// /// Gets a reference to the value representing the R component. /// public readonly ref int R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1)); /// /// Gets a reference to the value representing the G component. /// public readonly ref int G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1)); /// /// Gets a reference to the value representing the B component. /// public readonly ref int B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1)); /// /// 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. public readonly ref readonly Int2 RR => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref Int2 RG => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref Int2 RB => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref Int2 GR => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref readonly Int2 GG => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref Int2 GB => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref Int2 BR => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref Int2 BG => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref readonly Int2 BB => ref *(Int2*)UndefinedData; /// /// 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. public readonly ref readonly Int3 RRR => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 RRG => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 RRB => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 RGR => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 RGG => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref Int3 RGB => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 RBR => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref Int3 RBG => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 RBB => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 GRR => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 GRG => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref Int3 GRB => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 GGR => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 GGG => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 GGB => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref Int3 GBR => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 GBG => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 GBB => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 BRR => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref Int3 BRG => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 BRB => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref Int3 BGR => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 BGG => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 BGB => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 BBR => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 BBG => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int3 BBB => ref *(Int3*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RRRR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RRRG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RRRB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RRGR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RRGG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RRGB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RRBR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RRBG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RRBB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RGRR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RGRG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RGRB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RGGR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RGGG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RGGB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RGBR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RGBG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RGBB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RBRR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RBRG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RBRB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RBGR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RBGG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RBGB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RBBR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RBBG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 RBBB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GRRR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GRRG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GRRB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GRGR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GRGG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GRGB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GRBR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GRBG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GRBB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GGRR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GGRG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GGRB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GGGR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GGGG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GGGB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GGBR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GGBG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GGBB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GBRR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GBRG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GBRB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GBGR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GBGG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GBGB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GBBR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GBBG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 GBBB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BRRR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BRRG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BRRB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BRGR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BRGG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BRGB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BRBR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BRBG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BRBB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BGRR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BGRG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BGRB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BGGR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BGGG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BGGB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BGBR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BGBG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BGBB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BBRR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BBRG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BBRB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BBGR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BBGG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BBGB => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BBBR => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BBBG => ref *(Int4*)UndefinedData; /// /// 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. public readonly ref readonly Int4 BBBB => ref *(Int4*)UndefinedData; #if !SOURCE_GENERATOR /// public override readonly string ToString() { string separator = NumberFormatInfo.CurrentInfo.NumberGroupSeparator; #if NET6_0_OR_GREATER return string.Create(null, stackalloc char[64], $"<{this.x}{separator} {this.y}{separator} {this.z}>"); #else return $"<{this.x}{separator} {this.y}{separator} {this.z}>"; #endif } /// public readonly string ToString(string? format, IFormatProvider? formatProvider) { string separator = NumberFormatInfo.GetInstance(formatProvider).NumberGroupSeparator; return FormatInterpolatedStringHandler.Create( format, formatProvider, stackalloc char[64], $"<{this.x}{separator} {this.y}{separator} {this.z}>"); } /// public readonly bool TryFormat(Span destination, out int charsWritten, ReadOnlySpan format, IFormatProvider? provider) { string separator = NumberFormatInfo.GetInstance(provider).NumberGroupSeparator; return TryWriteFormatInterpolatedStringHandler.TryWrite( destination, format, provider, $"<{this.x}{separator} {this.y}{separator} {this.z}>", out charsWritten); } #endif /// /// Negates a value. /// /// The value to negate. /// The negated value of . /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public static Int3 operator -(Int3 xyz) => default; /// /// 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 Int3 operator +(Int3 left, Int3 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 Int3 operator /(Int3 left, Int3 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 Int3 operator %(Int3 left, Int3 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 Int3 operator *(Int3 left, Int3 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 Int3 operator -(Int3 left, Int3 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 Bool3 operator >(Int3 left, Int3 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 Bool3 operator >=(Int3 left, Int3 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 Bool3 operator <(Int3 left, Int3 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 Bool3 operator <=(Int3 left, Int3 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 Bool3 operator ==(Int3 left, Int3 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 Bool3 operator !=(Int3 left, Int3 right) => default; }