Unify all undefined data for HLSL primitive types

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-08 17:59:35 +02:00
1 親 98397f9390
コミット 0af7f53ae7
26ファイル変更
+5173 -5702

検索条件に一致するファイルはありません

+57 -65
ファイルの表示
@@ -3,9 +3,6 @@ using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET6_0_OR_GREATER
using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers;
#endif
#nullable enable
#pragma warning disable CS0660, CS0661
@@ -16,11 +13,6 @@ namespace ComputeSharp;
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
public unsafe partial struct UInt2
{
/// <summary>
/// A private buffer to which the undefined properties will point to.
/// </summary>
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt2), sizeof(UInt4));
[FieldOffset(0)]
private uint x;
@@ -33,7 +25,7 @@ public unsafe partial struct UInt2
/// <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;
public ref uint this[int i] => ref *(uint*)UndefinedData.Memory;
/// <summary>
/// Gets a <see cref="UInt2"/> value with all components set to 0.
@@ -72,196 +64,196 @@ public unsafe partial struct UInt2
/// </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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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.
@@ -280,196 +272,196 @@ public unsafe partial struct UInt2
/// </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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
public readonly ref readonly UInt4 GGGG => ref *(UInt4*)UndefinedData.Memory;
#if !SOURCE_GENERATOR