Added missing readonly modifiers to primitive types

このコミットが含まれているのは:
Sergio Pedri committed 2021-03-15 19:59:30 +01:00
1 親 4c8fdec09a
コミット b18f76b04a
22ファイル変更
+4758 -4780

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

+16 -17
ファイルの表示
@@ -1,7 +1,6 @@
using System.Runtime.InteropServices;
#if NET5_0
using System.Runtime.CompilerServices;
#else
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET5_0
using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal;
#endif
@@ -28,74 +27,74 @@ namespace ComputeSharp
/// </summary>
/// <param name="i">The index of the component to access.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref bool this[int i] => ref *(bool*)UndefinedData;
public readonly ref bool this[int i] => ref *(bool*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="bool"/> value representing the <c>X</c> component.
/// </summary>
public ref bool X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref bool X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="bool"/> value representing the <c>Y</c> component.
/// </summary>
public ref bool Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref bool Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="X"/>, <see cref="X"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly Bool2 XX => ref *(Bool2*)UndefinedData;
public readonly ref readonly Bool2 XX => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool2"/> 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>
public ref Bool2 XY => ref *(Bool2*)UndefinedData;
public readonly ref Bool2 XY => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool2"/> 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>
public ref Bool2 YX => ref *(Bool2*)UndefinedData;
public readonly ref Bool2 YX => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool2"/> 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>
public ref readonly Bool2 YY => ref *(Bool2*)UndefinedData;
public readonly ref readonly Bool2 YY => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="bool"/> value representing the <c>R</c> component.
/// </summary>
public ref bool R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref bool R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="bool"/> value representing the <c>G</c> component.
/// </summary>
public ref bool G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref bool G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="R"/>, <see cref="R"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly Bool2 RR => ref *(Bool2*)UndefinedData;
public readonly ref readonly Bool2 RR => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool2"/> 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>
public ref Bool2 RG => ref *(Bool2*)UndefinedData;
public readonly ref Bool2 RG => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool2"/> 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>
public ref Bool2 GR => ref *(Bool2*)UndefinedData;
public readonly ref Bool2 GR => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool2"/> 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>
public ref readonly Bool2 GG => ref *(Bool2*)UndefinedData;
public readonly ref readonly Bool2 GG => ref *(Bool2*)UndefinedData;
}
}
+82 -83
ファイルの表示
@@ -1,7 +1,6 @@
using System.Runtime.InteropServices;
#if NET5_0
using System.Runtime.CompilerServices;
#else
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET5_0
using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal;
#endif
@@ -31,468 +30,468 @@ namespace ComputeSharp
/// </summary>
/// <param name="i">The index of the component to access.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref bool this[int i] => ref *(bool*)UndefinedData;
public readonly ref bool this[int i] => ref *(bool*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="bool"/> value representing the <c>X</c> component.
/// </summary>
public ref bool X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref bool X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="bool"/> value representing the <c>Y</c> component.
/// </summary>
public ref bool Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref bool Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a reference to the <see cref="bool"/> value representing the <c>Z</c> component.
/// </summary>
public ref bool Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
public readonly ref bool Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="X"/>, <see cref="X"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly Bool2 XX => ref *(Bool2*)UndefinedData;
public readonly ref readonly Bool2 XX => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool2"/> 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>
public ref Bool2 XY => ref *(Bool2*)UndefinedData;
public readonly ref Bool2 XY => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref Bool2 XZ => ref *(Bool2*)UndefinedData;
public readonly ref Bool2 XZ => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool2"/> 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>
public ref Bool2 YX => ref *(Bool2*)UndefinedData;
public readonly ref Bool2 YX => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool2"/> 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>
public ref readonly Bool2 YY => ref *(Bool2*)UndefinedData;
public readonly ref readonly Bool2 YY => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref Bool2 YZ => ref *(Bool2*)UndefinedData;
public readonly ref Bool2 YZ => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="Z"/>, <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>
public ref Bool2 ZX => ref *(Bool2*)UndefinedData;
public readonly ref Bool2 ZX => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="Z"/>, <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>
public ref Bool2 ZY => ref *(Bool2*)UndefinedData;
public readonly ref Bool2 ZY => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly Bool2 ZZ => ref *(Bool2*)UndefinedData;
public readonly ref readonly Bool2 ZZ => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> 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>
public ref readonly Bool3 XXX => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 XXX => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> 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>
public ref readonly Bool3 XXY => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 XXY => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref readonly Bool3 XXZ => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 XXZ => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> 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>
public ref readonly Bool3 XYX => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 XYX => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> 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>
public ref readonly Bool3 XYY => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 XYY => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref Bool3 XYZ => ref *(Bool3*)UndefinedData;
public readonly ref Bool3 XYZ => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <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>
public ref readonly Bool3 XZX => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 XZX => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <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>
public ref Bool3 XZY => ref *(Bool3*)UndefinedData;
public readonly ref Bool3 XZY => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly Bool3 XZZ => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 XZZ => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> 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>
public ref readonly Bool3 YXX => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 YXX => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> 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>
public ref readonly Bool3 YXY => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 YXY => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref Bool3 YXZ => ref *(Bool3*)UndefinedData;
public readonly ref Bool3 YXZ => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> 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>
public ref readonly Bool3 YYX => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 YYX => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> 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>
public ref readonly Bool3 YYY => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 YYY => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref readonly Bool3 YYZ => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 YYZ => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <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>
public ref Bool3 YZX => ref *(Bool3*)UndefinedData;
public readonly ref Bool3 YZX => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <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>
public ref readonly Bool3 YZY => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 YZY => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly Bool3 YZZ => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 YZZ => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <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>
public ref readonly Bool3 ZXX => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 ZXX => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <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>
public ref Bool3 ZXY => ref *(Bool3*)UndefinedData;
public readonly ref Bool3 ZXY => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref readonly Bool3 ZXZ => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 ZXZ => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <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>
public ref Bool3 ZYX => ref *(Bool3*)UndefinedData;
public readonly ref Bool3 ZYX => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <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>
public ref readonly Bool3 ZYY => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 ZYY => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref readonly Bool3 ZYZ => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 ZYZ => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <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>
public ref readonly Bool3 ZZX => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 ZZX => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <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>
public ref readonly Bool3 ZZY => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 ZZY => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly Bool3 ZZZ => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 ZZZ => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="bool"/> value representing the <c>R</c> component.
/// </summary>
public ref bool R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref bool R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="bool"/> value representing the <c>G</c> component.
/// </summary>
public ref bool G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref bool G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a reference to the <see cref="bool"/> value representing the <c>B</c> component.
/// </summary>
public ref bool B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
public readonly ref bool B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="R"/>, <see cref="R"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly Bool2 RR => ref *(Bool2*)UndefinedData;
public readonly ref readonly Bool2 RR => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool2"/> 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>
public ref Bool2 RG => ref *(Bool2*)UndefinedData;
public readonly ref Bool2 RG => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref Bool2 RB => ref *(Bool2*)UndefinedData;
public readonly ref Bool2 RB => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool2"/> 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>
public ref Bool2 GR => ref *(Bool2*)UndefinedData;
public readonly ref Bool2 GR => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool2"/> 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>
public ref readonly Bool2 GG => ref *(Bool2*)UndefinedData;
public readonly ref readonly Bool2 GG => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref Bool2 GB => ref *(Bool2*)UndefinedData;
public readonly ref Bool2 GB => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="B"/>, <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>
public ref Bool2 BR => ref *(Bool2*)UndefinedData;
public readonly ref Bool2 BR => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="B"/>, <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>
public ref Bool2 BG => ref *(Bool2*)UndefinedData;
public readonly ref Bool2 BG => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly Bool2 BB => ref *(Bool2*)UndefinedData;
public readonly ref readonly Bool2 BB => ref *(Bool2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> 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>
public ref readonly Bool3 RRR => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 RRR => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> 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>
public ref readonly Bool3 RRG => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 RRG => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref readonly Bool3 RRB => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 RRB => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> 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>
public ref readonly Bool3 RGR => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 RGR => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> 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>
public ref readonly Bool3 RGG => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 RGG => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref Bool3 RGB => ref *(Bool3*)UndefinedData;
public readonly ref Bool3 RGB => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="B"/>, <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>
public ref readonly Bool3 RBR => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 RBR => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="B"/>, <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>
public ref Bool3 RBG => ref *(Bool3*)UndefinedData;
public readonly ref Bool3 RBG => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly Bool3 RBB => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 RBB => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> 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>
public ref readonly Bool3 GRR => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 GRR => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> 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>
public ref readonly Bool3 GRG => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 GRG => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref Bool3 GRB => ref *(Bool3*)UndefinedData;
public readonly ref Bool3 GRB => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> 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>
public ref readonly Bool3 GGR => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 GGR => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> 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>
public ref readonly Bool3 GGG => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 GGG => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref readonly Bool3 GGB => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 GGB => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="B"/>, <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>
public ref Bool3 GBR => ref *(Bool3*)UndefinedData;
public readonly ref Bool3 GBR => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="B"/>, <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>
public ref readonly Bool3 GBG => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 GBG => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly Bool3 GBB => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 GBB => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <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>
public ref readonly Bool3 BRR => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 BRR => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <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>
public ref Bool3 BRG => ref *(Bool3*)UndefinedData;
public readonly ref Bool3 BRG => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref readonly Bool3 BRB => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 BRB => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <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>
public ref Bool3 BGR => ref *(Bool3*)UndefinedData;
public readonly ref Bool3 BGR => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <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>
public ref readonly Bool3 BGG => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 BGG => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref readonly Bool3 BGB => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 BGB => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <see cref="B"/>, <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>
public ref readonly Bool3 BBR => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 BBR => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <see cref="B"/>, <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>
public ref readonly Bool3 BBG => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 BBG => ref *(Bool3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly Bool3 BBB => ref *(Bool3*)UndefinedData;
public readonly ref readonly Bool3 BBB => ref *(Bool3*)UndefinedData;
}
}
ファイル差分が大きすぎるため表示されません。 差分を読み込み
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+16 -17
ファイルの表示
@@ -1,7 +1,6 @@
using System.Runtime.InteropServices;
#if NET5_0
using System.Runtime.CompilerServices;
#else
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET5_0
using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal;
#endif
@@ -28,75 +27,75 @@ namespace ComputeSharp
/// </summary>
/// <param name="i">The index of the component to access.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref double this[int i] => ref *(double*)UndefinedData;
public readonly ref double this[int i] => ref *(double*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="double"/> value representing the <c>X</c> component.
/// </summary>
public ref double X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref double X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="double"/> value representing the <c>Y</c> component.
/// </summary>
public ref double Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref double Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="X"/>, <see cref="X"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly Double2 XX => ref *(Double2*)UndefinedData;
public readonly ref readonly Double2 XX => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double2"/> 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>
public ref Double2 XY => ref *(Double2*)UndefinedData;
public readonly ref Double2 XY => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double2"/> 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>
public ref Double2 YX => ref *(Double2*)UndefinedData;
public readonly ref Double2 YX => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double2"/> 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>
public ref readonly Double2 YY => ref *(Double2*)UndefinedData;
public readonly ref readonly Double2 YY => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="double"/> value representing the <c>R</c> component.
/// </summary>
public ref double R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref double R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="double"/> value representing the <c>G</c> component.
/// </summary>
public ref double G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref double G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="R"/>, <see cref="R"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly Double2 RR => ref *(Double2*)UndefinedData;
public readonly ref readonly Double2 RR => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double2"/> 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>
public ref Double2 RG => ref *(Double2*)UndefinedData;
public readonly ref Double2 RG => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double2"/> 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>
public ref Double2 GR => ref *(Double2*)UndefinedData;
public readonly ref Double2 GR => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double2"/> 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>
public ref readonly Double2 GG => ref *(Double2*)UndefinedData;
public readonly ref readonly Double2 GG => ref *(Double2*)UndefinedData;
/// <summary>
/// Negates a <see cref="Double2"/> value.
+82 -83
ファイルの表示
@@ -1,7 +1,6 @@
using System.Runtime.InteropServices;
#if NET5_0
using System.Runtime.CompilerServices;
#else
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET5_0
using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal;
#endif
@@ -31,469 +30,469 @@ namespace ComputeSharp
/// </summary>
/// <param name="i">The index of the component to access.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref double this[int i] => ref *(double*)UndefinedData;
public readonly ref double this[int i] => ref *(double*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="double"/> value representing the <c>X</c> component.
/// </summary>
public ref double X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref double X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="double"/> value representing the <c>Y</c> component.
/// </summary>
public ref double Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref double Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a reference to the <see cref="double"/> value representing the <c>Z</c> component.
/// </summary>
public ref double Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
public readonly ref double Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="X"/>, <see cref="X"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly Double2 XX => ref *(Double2*)UndefinedData;
public readonly ref readonly Double2 XX => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double2"/> 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>
public ref Double2 XY => ref *(Double2*)UndefinedData;
public readonly ref Double2 XY => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref Double2 XZ => ref *(Double2*)UndefinedData;
public readonly ref Double2 XZ => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double2"/> 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>
public ref Double2 YX => ref *(Double2*)UndefinedData;
public readonly ref Double2 YX => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double2"/> 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>
public ref readonly Double2 YY => ref *(Double2*)UndefinedData;
public readonly ref readonly Double2 YY => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref Double2 YZ => ref *(Double2*)UndefinedData;
public readonly ref Double2 YZ => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="Z"/>, <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>
public ref Double2 ZX => ref *(Double2*)UndefinedData;
public readonly ref Double2 ZX => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="Z"/>, <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>
public ref Double2 ZY => ref *(Double2*)UndefinedData;
public readonly ref Double2 ZY => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly Double2 ZZ => ref *(Double2*)UndefinedData;
public readonly ref readonly Double2 ZZ => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> 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>
public ref readonly Double3 XXX => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 XXX => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> 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>
public ref readonly Double3 XXY => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 XXY => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref readonly Double3 XXZ => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 XXZ => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> 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>
public ref readonly Double3 XYX => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 XYX => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> 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>
public ref readonly Double3 XYY => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 XYY => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref Double3 XYZ => ref *(Double3*)UndefinedData;
public readonly ref Double3 XYZ => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <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>
public ref readonly Double3 XZX => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 XZX => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <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>
public ref Double3 XZY => ref *(Double3*)UndefinedData;
public readonly ref Double3 XZY => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly Double3 XZZ => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 XZZ => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> 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>
public ref readonly Double3 YXX => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 YXX => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> 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>
public ref readonly Double3 YXY => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 YXY => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref Double3 YXZ => ref *(Double3*)UndefinedData;
public readonly ref Double3 YXZ => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> 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>
public ref readonly Double3 YYX => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 YYX => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> 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>
public ref readonly Double3 YYY => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 YYY => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref readonly Double3 YYZ => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 YYZ => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <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>
public ref Double3 YZX => ref *(Double3*)UndefinedData;
public readonly ref Double3 YZX => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <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>
public ref readonly Double3 YZY => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 YZY => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly Double3 YZZ => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 YZZ => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <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>
public ref readonly Double3 ZXX => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 ZXX => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <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>
public ref Double3 ZXY => ref *(Double3*)UndefinedData;
public readonly ref Double3 ZXY => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref readonly Double3 ZXZ => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 ZXZ => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <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>
public ref Double3 ZYX => ref *(Double3*)UndefinedData;
public readonly ref Double3 ZYX => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <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>
public ref readonly Double3 ZYY => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 ZYY => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref readonly Double3 ZYZ => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 ZYZ => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <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>
public ref readonly Double3 ZZX => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 ZZX => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <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>
public ref readonly Double3 ZZY => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 ZZY => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly Double3 ZZZ => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 ZZZ => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="double"/> value representing the <c>R</c> component.
/// </summary>
public ref double R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref double R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="double"/> value representing the <c>G</c> component.
/// </summary>
public ref double G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref double G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a reference to the <see cref="double"/> value representing the <c>B</c> component.
/// </summary>
public ref double B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
public readonly ref double B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="R"/>, <see cref="R"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly Double2 RR => ref *(Double2*)UndefinedData;
public readonly ref readonly Double2 RR => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double2"/> 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>
public ref Double2 RG => ref *(Double2*)UndefinedData;
public readonly ref Double2 RG => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref Double2 RB => ref *(Double2*)UndefinedData;
public readonly ref Double2 RB => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double2"/> 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>
public ref Double2 GR => ref *(Double2*)UndefinedData;
public readonly ref Double2 GR => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double2"/> 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>
public ref readonly Double2 GG => ref *(Double2*)UndefinedData;
public readonly ref readonly Double2 GG => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref Double2 GB => ref *(Double2*)UndefinedData;
public readonly ref Double2 GB => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="B"/>, <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>
public ref Double2 BR => ref *(Double2*)UndefinedData;
public readonly ref Double2 BR => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="B"/>, <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>
public ref Double2 BG => ref *(Double2*)UndefinedData;
public readonly ref Double2 BG => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly Double2 BB => ref *(Double2*)UndefinedData;
public readonly ref readonly Double2 BB => ref *(Double2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> 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>
public ref readonly Double3 RRR => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 RRR => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> 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>
public ref readonly Double3 RRG => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 RRG => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref readonly Double3 RRB => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 RRB => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> 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>
public ref readonly Double3 RGR => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 RGR => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> 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>
public ref readonly Double3 RGG => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 RGG => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref Double3 RGB => ref *(Double3*)UndefinedData;
public readonly ref Double3 RGB => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="B"/>, <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>
public ref readonly Double3 RBR => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 RBR => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="B"/>, <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>
public ref Double3 RBG => ref *(Double3*)UndefinedData;
public readonly ref Double3 RBG => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly Double3 RBB => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 RBB => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> 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>
public ref readonly Double3 GRR => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 GRR => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> 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>
public ref readonly Double3 GRG => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 GRG => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref Double3 GRB => ref *(Double3*)UndefinedData;
public readonly ref Double3 GRB => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> 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>
public ref readonly Double3 GGR => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 GGR => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> 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>
public ref readonly Double3 GGG => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 GGG => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref readonly Double3 GGB => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 GGB => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="B"/>, <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>
public ref Double3 GBR => ref *(Double3*)UndefinedData;
public readonly ref Double3 GBR => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="B"/>, <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>
public ref readonly Double3 GBG => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 GBG => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly Double3 GBB => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 GBB => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <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>
public ref readonly Double3 BRR => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 BRR => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <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>
public ref Double3 BRG => ref *(Double3*)UndefinedData;
public readonly ref Double3 BRG => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref readonly Double3 BRB => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 BRB => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <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>
public ref Double3 BGR => ref *(Double3*)UndefinedData;
public readonly ref Double3 BGR => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <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>
public ref readonly Double3 BGG => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 BGG => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref readonly Double3 BGB => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 BGB => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <see cref="B"/>, <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>
public ref readonly Double3 BBR => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 BBR => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <see cref="B"/>, <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>
public ref readonly Double3 BBG => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 BBG => ref *(Double3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly Double3 BBB => ref *(Double3*)UndefinedData;
public readonly ref readonly Double3 BBB => ref *(Double3*)UndefinedData;
/// <summary>
/// Negates a <see cref="Double3"/> value.
ファイル差分が大きすぎるため表示されません。 差分を読み込み
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+16 -17
ファイルの表示
@@ -1,7 +1,6 @@
using System.Runtime.InteropServices;
#if NET5_0
using System.Runtime.CompilerServices;
#else
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET5_0
using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal;
#endif
@@ -28,75 +27,75 @@ namespace ComputeSharp
/// </summary>
/// <param name="i">The index of the component to access.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref float this[int i] => ref *(float*)UndefinedData;
public readonly ref float this[int i] => ref *(float*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="float"/> value representing the <c>X</c> component.
/// </summary>
public ref float X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref float X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="float"/> value representing the <c>Y</c> component.
/// </summary>
public ref float Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref float Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="X"/>, <see cref="X"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly Float2 XX => ref *(Float2*)UndefinedData;
public readonly ref readonly Float2 XX => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float2"/> 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>
public ref Float2 XY => ref *(Float2*)UndefinedData;
public readonly ref Float2 XY => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float2"/> 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>
public ref Float2 YX => ref *(Float2*)UndefinedData;
public readonly ref Float2 YX => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float2"/> 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>
public ref readonly Float2 YY => ref *(Float2*)UndefinedData;
public readonly ref readonly Float2 YY => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="float"/> value representing the <c>R</c> component.
/// </summary>
public ref float R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref float R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="float"/> value representing the <c>G</c> component.
/// </summary>
public ref float G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref float G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="R"/>, <see cref="R"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly Float2 RR => ref *(Float2*)UndefinedData;
public readonly ref readonly Float2 RR => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float2"/> 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>
public ref Float2 RG => ref *(Float2*)UndefinedData;
public readonly ref Float2 RG => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float2"/> 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>
public ref Float2 GR => ref *(Float2*)UndefinedData;
public readonly ref Float2 GR => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float2"/> 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>
public ref readonly Float2 GG => ref *(Float2*)UndefinedData;
public readonly ref readonly Float2 GG => ref *(Float2*)UndefinedData;
/// <summary>
/// Negates a <see cref="Float2"/> value.
+82 -83
ファイルの表示
@@ -1,7 +1,6 @@
using System.Runtime.InteropServices;
#if NET5_0
using System.Runtime.CompilerServices;
#else
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET5_0
using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal;
#endif
@@ -31,469 +30,469 @@ namespace ComputeSharp
/// </summary>
/// <param name="i">The index of the component to access.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref float this[int i] => ref *(float*)UndefinedData;
public readonly ref float this[int i] => ref *(float*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="float"/> value representing the <c>X</c> component.
/// </summary>
public ref float X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref float X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="float"/> value representing the <c>Y</c> component.
/// </summary>
public ref float Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref float Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a reference to the <see cref="float"/> value representing the <c>Z</c> component.
/// </summary>
public ref float Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
public readonly ref float Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="X"/>, <see cref="X"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly Float2 XX => ref *(Float2*)UndefinedData;
public readonly ref readonly Float2 XX => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float2"/> 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>
public ref Float2 XY => ref *(Float2*)UndefinedData;
public readonly ref Float2 XY => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref Float2 XZ => ref *(Float2*)UndefinedData;
public readonly ref Float2 XZ => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float2"/> 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>
public ref Float2 YX => ref *(Float2*)UndefinedData;
public readonly ref Float2 YX => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float2"/> 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>
public ref readonly Float2 YY => ref *(Float2*)UndefinedData;
public readonly ref readonly Float2 YY => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref Float2 YZ => ref *(Float2*)UndefinedData;
public readonly ref Float2 YZ => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="Z"/>, <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>
public ref Float2 ZX => ref *(Float2*)UndefinedData;
public readonly ref Float2 ZX => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="Z"/>, <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>
public ref Float2 ZY => ref *(Float2*)UndefinedData;
public readonly ref Float2 ZY => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly Float2 ZZ => ref *(Float2*)UndefinedData;
public readonly ref readonly Float2 ZZ => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> 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>
public ref readonly Float3 XXX => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 XXX => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> 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>
public ref readonly Float3 XXY => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 XXY => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref readonly Float3 XXZ => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 XXZ => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> 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>
public ref readonly Float3 XYX => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 XYX => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> 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>
public ref readonly Float3 XYY => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 XYY => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref Float3 XYZ => ref *(Float3*)UndefinedData;
public readonly ref Float3 XYZ => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <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>
public ref readonly Float3 XZX => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 XZX => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <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>
public ref Float3 XZY => ref *(Float3*)UndefinedData;
public readonly ref Float3 XZY => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly Float3 XZZ => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 XZZ => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> 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>
public ref readonly Float3 YXX => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 YXX => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> 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>
public ref readonly Float3 YXY => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 YXY => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref Float3 YXZ => ref *(Float3*)UndefinedData;
public readonly ref Float3 YXZ => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> 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>
public ref readonly Float3 YYX => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 YYX => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> 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>
public ref readonly Float3 YYY => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 YYY => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref readonly Float3 YYZ => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 YYZ => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <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>
public ref Float3 YZX => ref *(Float3*)UndefinedData;
public readonly ref Float3 YZX => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <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>
public ref readonly Float3 YZY => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 YZY => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly Float3 YZZ => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 YZZ => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <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>
public ref readonly Float3 ZXX => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 ZXX => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <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>
public ref Float3 ZXY => ref *(Float3*)UndefinedData;
public readonly ref Float3 ZXY => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref readonly Float3 ZXZ => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 ZXZ => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <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>
public ref Float3 ZYX => ref *(Float3*)UndefinedData;
public readonly ref Float3 ZYX => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <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>
public ref readonly Float3 ZYY => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 ZYY => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref readonly Float3 ZYZ => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 ZYZ => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <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>
public ref readonly Float3 ZZX => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 ZZX => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <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>
public ref readonly Float3 ZZY => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 ZZY => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly Float3 ZZZ => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 ZZZ => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="float"/> value representing the <c>R</c> component.
/// </summary>
public ref float R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref float R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="float"/> value representing the <c>G</c> component.
/// </summary>
public ref float G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref float G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a reference to the <see cref="float"/> value representing the <c>B</c> component.
/// </summary>
public ref float B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
public readonly ref float B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="R"/>, <see cref="R"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly Float2 RR => ref *(Float2*)UndefinedData;
public readonly ref readonly Float2 RR => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float2"/> 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>
public ref Float2 RG => ref *(Float2*)UndefinedData;
public readonly ref Float2 RG => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref Float2 RB => ref *(Float2*)UndefinedData;
public readonly ref Float2 RB => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float2"/> 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>
public ref Float2 GR => ref *(Float2*)UndefinedData;
public readonly ref Float2 GR => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float2"/> 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>
public ref readonly Float2 GG => ref *(Float2*)UndefinedData;
public readonly ref readonly Float2 GG => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref Float2 GB => ref *(Float2*)UndefinedData;
public readonly ref Float2 GB => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="B"/>, <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>
public ref Float2 BR => ref *(Float2*)UndefinedData;
public readonly ref Float2 BR => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="B"/>, <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>
public ref Float2 BG => ref *(Float2*)UndefinedData;
public readonly ref Float2 BG => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly Float2 BB => ref *(Float2*)UndefinedData;
public readonly ref readonly Float2 BB => ref *(Float2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> 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>
public ref readonly Float3 RRR => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 RRR => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> 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>
public ref readonly Float3 RRG => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 RRG => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref readonly Float3 RRB => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 RRB => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> 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>
public ref readonly Float3 RGR => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 RGR => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> 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>
public ref readonly Float3 RGG => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 RGG => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref Float3 RGB => ref *(Float3*)UndefinedData;
public readonly ref Float3 RGB => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="B"/>, <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>
public ref readonly Float3 RBR => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 RBR => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="B"/>, <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>
public ref Float3 RBG => ref *(Float3*)UndefinedData;
public readonly ref Float3 RBG => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly Float3 RBB => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 RBB => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> 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>
public ref readonly Float3 GRR => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 GRR => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> 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>
public ref readonly Float3 GRG => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 GRG => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref Float3 GRB => ref *(Float3*)UndefinedData;
public readonly ref Float3 GRB => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> 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>
public ref readonly Float3 GGR => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 GGR => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> 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>
public ref readonly Float3 GGG => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 GGG => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref readonly Float3 GGB => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 GGB => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="B"/>, <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>
public ref Float3 GBR => ref *(Float3*)UndefinedData;
public readonly ref Float3 GBR => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="B"/>, <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>
public ref readonly Float3 GBG => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 GBG => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly Float3 GBB => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 GBB => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <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>
public ref readonly Float3 BRR => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 BRR => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <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>
public ref Float3 BRG => ref *(Float3*)UndefinedData;
public readonly ref Float3 BRG => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref readonly Float3 BRB => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 BRB => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <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>
public ref Float3 BGR => ref *(Float3*)UndefinedData;
public readonly ref Float3 BGR => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <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>
public ref readonly Float3 BGG => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 BGG => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref readonly Float3 BGB => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 BGB => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <see cref="B"/>, <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>
public ref readonly Float3 BBR => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 BBR => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <see cref="B"/>, <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>
public ref readonly Float3 BBG => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 BBG => ref *(Float3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly Float3 BBB => ref *(Float3*)UndefinedData;
public readonly ref readonly Float3 BBB => ref *(Float3*)UndefinedData;
/// <summary>
/// Negates a <see cref="Float3"/> value.
ファイル差分が大きすぎるため表示されません。 差分を読み込み
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+16 -17
ファイルの表示
@@ -1,7 +1,6 @@
using System.Runtime.InteropServices;
#if NET5_0
using System.Runtime.CompilerServices;
#else
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET5_0
using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal;
#endif
@@ -28,75 +27,75 @@ namespace ComputeSharp
/// </summary>
/// <param name="i">The index of the component to access.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref int this[int i] => ref *(int*)UndefinedData;
public readonly ref int this[int i] => ref *(int*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>X</c> component.
/// </summary>
public ref int X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref int X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>Y</c> component.
/// </summary>
public ref int Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref int Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="X"/>, <see cref="X"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly Int2 XX => ref *(Int2*)UndefinedData;
public readonly ref readonly Int2 XX => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int2"/> 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>
public ref Int2 XY => ref *(Int2*)UndefinedData;
public readonly ref Int2 XY => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int2"/> 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>
public ref Int2 YX => ref *(Int2*)UndefinedData;
public readonly ref Int2 YX => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int2"/> 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>
public ref readonly Int2 YY => ref *(Int2*)UndefinedData;
public readonly ref readonly Int2 YY => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>R</c> component.
/// </summary>
public ref int R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref int R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>G</c> component.
/// </summary>
public ref int G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref int G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="R"/>, <see cref="R"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly Int2 RR => ref *(Int2*)UndefinedData;
public readonly ref readonly Int2 RR => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int2"/> 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>
public ref Int2 RG => ref *(Int2*)UndefinedData;
public readonly ref Int2 RG => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int2"/> 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>
public ref Int2 GR => ref *(Int2*)UndefinedData;
public readonly ref Int2 GR => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int2"/> 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>
public ref readonly Int2 GG => ref *(Int2*)UndefinedData;
public readonly ref readonly Int2 GG => ref *(Int2*)UndefinedData;
/// <summary>
/// Negates a <see cref="Int2"/> value.
+82 -83
ファイルの表示
@@ -1,7 +1,6 @@
using System.Runtime.InteropServices;
#if NET5_0
using System.Runtime.CompilerServices;
#else
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET5_0
using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal;
#endif
@@ -31,469 +30,469 @@ namespace ComputeSharp
/// </summary>
/// <param name="i">The index of the component to access.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref int this[int i] => ref *(int*)UndefinedData;
public readonly ref int this[int i] => ref *(int*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>X</c> component.
/// </summary>
public ref int X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref int X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>Y</c> component.
/// </summary>
public ref int Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref int Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>Z</c> component.
/// </summary>
public ref int Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
public readonly ref int Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="X"/>, <see cref="X"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly Int2 XX => ref *(Int2*)UndefinedData;
public readonly ref readonly Int2 XX => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int2"/> 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>
public ref Int2 XY => ref *(Int2*)UndefinedData;
public readonly ref Int2 XY => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref Int2 XZ => ref *(Int2*)UndefinedData;
public readonly ref Int2 XZ => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int2"/> 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>
public ref Int2 YX => ref *(Int2*)UndefinedData;
public readonly ref Int2 YX => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int2"/> 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>
public ref readonly Int2 YY => ref *(Int2*)UndefinedData;
public readonly ref readonly Int2 YY => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref Int2 YZ => ref *(Int2*)UndefinedData;
public readonly ref Int2 YZ => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="Z"/>, <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>
public ref Int2 ZX => ref *(Int2*)UndefinedData;
public readonly ref Int2 ZX => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="Z"/>, <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>
public ref Int2 ZY => ref *(Int2*)UndefinedData;
public readonly ref Int2 ZY => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly Int2 ZZ => ref *(Int2*)UndefinedData;
public readonly ref readonly Int2 ZZ => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> 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>
public ref readonly Int3 XXX => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 XXX => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> 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>
public ref readonly Int3 XXY => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 XXY => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref readonly Int3 XXZ => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 XXZ => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> 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>
public ref readonly Int3 XYX => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 XYX => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> 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>
public ref readonly Int3 XYY => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 XYY => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref Int3 XYZ => ref *(Int3*)UndefinedData;
public readonly ref Int3 XYZ => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <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>
public ref readonly Int3 XZX => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 XZX => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <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>
public ref Int3 XZY => ref *(Int3*)UndefinedData;
public readonly ref Int3 XZY => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly Int3 XZZ => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 XZZ => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> 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>
public ref readonly Int3 YXX => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 YXX => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> 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>
public ref readonly Int3 YXY => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 YXY => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref Int3 YXZ => ref *(Int3*)UndefinedData;
public readonly ref Int3 YXZ => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> 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>
public ref readonly Int3 YYX => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 YYX => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> 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>
public ref readonly Int3 YYY => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 YYY => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref readonly Int3 YYZ => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 YYZ => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <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>
public ref Int3 YZX => ref *(Int3*)UndefinedData;
public readonly ref Int3 YZX => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <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>
public ref readonly Int3 YZY => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 YZY => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly Int3 YZZ => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 YZZ => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <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>
public ref readonly Int3 ZXX => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 ZXX => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <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>
public ref Int3 ZXY => ref *(Int3*)UndefinedData;
public readonly ref Int3 ZXY => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref readonly Int3 ZXZ => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 ZXZ => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <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>
public ref Int3 ZYX => ref *(Int3*)UndefinedData;
public readonly ref Int3 ZYX => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <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>
public ref readonly Int3 ZYY => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 ZYY => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref readonly Int3 ZYZ => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 ZYZ => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <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>
public ref readonly Int3 ZZX => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 ZZX => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <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>
public ref readonly Int3 ZZY => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 ZZY => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly Int3 ZZZ => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 ZZZ => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>R</c> component.
/// </summary>
public ref int R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref int R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>G</c> component.
/// </summary>
public ref int G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref int G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>B</c> component.
/// </summary>
public ref int B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
public readonly ref int B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="R"/>, <see cref="R"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly Int2 RR => ref *(Int2*)UndefinedData;
public readonly ref readonly Int2 RR => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int2"/> 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>
public ref Int2 RG => ref *(Int2*)UndefinedData;
public readonly ref Int2 RG => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref Int2 RB => ref *(Int2*)UndefinedData;
public readonly ref Int2 RB => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int2"/> 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>
public ref Int2 GR => ref *(Int2*)UndefinedData;
public readonly ref Int2 GR => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int2"/> 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>
public ref readonly Int2 GG => ref *(Int2*)UndefinedData;
public readonly ref readonly Int2 GG => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref Int2 GB => ref *(Int2*)UndefinedData;
public readonly ref Int2 GB => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="B"/>, <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>
public ref Int2 BR => ref *(Int2*)UndefinedData;
public readonly ref Int2 BR => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="B"/>, <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>
public ref Int2 BG => ref *(Int2*)UndefinedData;
public readonly ref Int2 BG => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly Int2 BB => ref *(Int2*)UndefinedData;
public readonly ref readonly Int2 BB => ref *(Int2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> 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>
public ref readonly Int3 RRR => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 RRR => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> 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>
public ref readonly Int3 RRG => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 RRG => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref readonly Int3 RRB => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 RRB => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> 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>
public ref readonly Int3 RGR => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 RGR => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> 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>
public ref readonly Int3 RGG => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 RGG => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref Int3 RGB => ref *(Int3*)UndefinedData;
public readonly ref Int3 RGB => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="B"/>, <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>
public ref readonly Int3 RBR => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 RBR => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="B"/>, <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>
public ref Int3 RBG => ref *(Int3*)UndefinedData;
public readonly ref Int3 RBG => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly Int3 RBB => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 RBB => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> 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>
public ref readonly Int3 GRR => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 GRR => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> 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>
public ref readonly Int3 GRG => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 GRG => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref Int3 GRB => ref *(Int3*)UndefinedData;
public readonly ref Int3 GRB => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> 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>
public ref readonly Int3 GGR => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 GGR => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> 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>
public ref readonly Int3 GGG => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 GGG => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref readonly Int3 GGB => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 GGB => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="B"/>, <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>
public ref Int3 GBR => ref *(Int3*)UndefinedData;
public readonly ref Int3 GBR => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="B"/>, <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>
public ref readonly Int3 GBG => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 GBG => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly Int3 GBB => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 GBB => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <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>
public ref readonly Int3 BRR => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 BRR => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <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>
public ref Int3 BRG => ref *(Int3*)UndefinedData;
public readonly ref Int3 BRG => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref readonly Int3 BRB => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 BRB => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <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>
public ref Int3 BGR => ref *(Int3*)UndefinedData;
public readonly ref Int3 BGR => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <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>
public ref readonly Int3 BGG => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 BGG => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref readonly Int3 BGB => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 BGB => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="B"/>, <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>
public ref readonly Int3 BBR => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 BBR => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="B"/>, <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>
public ref readonly Int3 BBG => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 BBG => ref *(Int3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly Int3 BBB => ref *(Int3*)UndefinedData;
public readonly ref readonly Int3 BBB => ref *(Int3*)UndefinedData;
/// <summary>
/// Negates a <see cref="Int3"/> value.
ファイル差分が大きすぎるため表示されません。 差分を読み込み
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+7 -8
ファイルの表示
@@ -10,10 +10,9 @@
void GenerateAllMatrixProperties(string typeName, int elementSize)
{
#>
using System.Runtime.InteropServices;
#if NET5_0
using System.Runtime.CompilerServices;
#else
using System.Runtime.InteropServices;
#if !NET5_0
using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal;
#endif
@@ -132,7 +131,7 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen
/// </summary>
/// <param name="row">The row 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>
public ref <#=rowTypeName#> this[int row] => ref *(<#=rowTypeName#>*)UndefinedData;
public readonly ref <#=rowTypeName#> this[int row] => ref *(<#=rowTypeName#>*)UndefinedData;
/// <summary>
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="<#=fullTypeName#>"/> instance.
@@ -140,7 +139,7 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen
/// <param name="xy0">The identifier of the first item to index.</param>
/// <param name="xy1">The identifier of the second item to index.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref <#=typeName#>2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(<#=typeName#>2*)UndefinedData;
public readonly ref <#=typeName#>2 this[MatrixIndex xy0, MatrixIndex xy1] => ref *(<#=typeName#>2*)UndefinedData;
/// <summary>
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="<#=fullTypeName#>"/> instance.
@@ -149,7 +148,7 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen
/// <param name="xy1">The identifier of the second item to index.</param>
/// <param name="xy2">The identifier of the third item to index.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref <#=typeName#>3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(<#=typeName#>3*)UndefinedData;
public readonly ref <#=typeName#>3 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2] => ref *(<#=typeName#>3*)UndefinedData;
/// <summary>
/// Gets a swizzled reference to a specific sequence of items in the current <see cref="<#=fullTypeName#>"/> instance.
@@ -159,7 +158,7 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen
/// <param name="xy2">The identifier of the third item to index.</param>
/// <param name="xy3">The identifier of the fourth item to index.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref <#=typeName#>4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(<#=typeName#>4*)UndefinedData;
public readonly ref <#=typeName#>4 this[MatrixIndex xy0, MatrixIndex xy1, MatrixIndex xy2, MatrixIndex xy3] => ref *(<#=typeName#>4*)UndefinedData;
<#
for (int i = 1; i <= rows; i++)
for (int j = 1; j <= columns; j++)
@@ -169,7 +168,7 @@ void GenerateMatrixProperties(string typeName, int rows, int columns, int elemen
/// <summary>
/// Gets a reference to the <see cref="<#=elementTypeName#>"/> value representing the component at position [<#=i#>, <#=j#>].
/// </summary>
public ref <#=elementTypeName#> M<#=i#><#=j#> => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.m<#=i#><#=j#>, 1));
public readonly ref <#=elementTypeName#> M<#=i#><#=j#> => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.m<#=i#><#=j#>), 1));
<#
}
+16 -17
ファイルの表示
@@ -1,7 +1,6 @@
using System.Runtime.InteropServices;
#if NET5_0
using System.Runtime.CompilerServices;
#else
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET5_0
using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal;
#endif
@@ -28,75 +27,75 @@ namespace ComputeSharp
/// </summary>
/// <param name="i">The index of the component to access.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref uint this[int i] => ref *(uint*)UndefinedData;
public readonly ref uint this[int i] => ref *(uint*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="uint"/> value representing the <c>X</c> component.
/// </summary>
public ref uint X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref uint X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="uint"/> value representing the <c>Y</c> component.
/// </summary>
public ref uint Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref uint Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="X"/>, <see cref="X"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly UInt2 XX => ref *(UInt2*)UndefinedData;
public readonly ref readonly UInt2 XX => ref *(UInt2*)UndefinedData;
/// <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>
public ref UInt2 XY => ref *(UInt2*)UndefinedData;
public readonly ref UInt2 XY => ref *(UInt2*)UndefinedData;
/// <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>
public ref UInt2 YX => ref *(UInt2*)UndefinedData;
public readonly ref UInt2 YX => ref *(UInt2*)UndefinedData;
/// <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>
public ref readonly UInt2 YY => ref *(UInt2*)UndefinedData;
public readonly ref readonly UInt2 YY => ref *(UInt2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="uint"/> value representing the <c>R</c> component.
/// </summary>
public ref uint R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref uint R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="uint"/> value representing the <c>G</c> component.
/// </summary>
public ref uint G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref uint G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="R"/>, <see cref="R"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly UInt2 RR => ref *(UInt2*)UndefinedData;
public readonly ref readonly UInt2 RR => ref *(UInt2*)UndefinedData;
/// <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>
public ref UInt2 RG => ref *(UInt2*)UndefinedData;
public readonly ref UInt2 RG => ref *(UInt2*)UndefinedData;
/// <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>
public ref UInt2 GR => ref *(UInt2*)UndefinedData;
public readonly ref UInt2 GR => ref *(UInt2*)UndefinedData;
/// <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>
public ref readonly UInt2 GG => ref *(UInt2*)UndefinedData;
public readonly ref readonly UInt2 GG => ref *(UInt2*)UndefinedData;
/// <summary>
/// Sums two <see cref="UInt2"/> values.
+82 -83
ファイルの表示
@@ -1,7 +1,6 @@
using System.Runtime.InteropServices;
#if NET5_0
using System.Runtime.CompilerServices;
#else
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
#if !NET5_0
using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal;
#endif
@@ -31,469 +30,469 @@ namespace ComputeSharp
/// </summary>
/// <param name="i">The index of the component to access.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref uint this[int i] => ref *(uint*)UndefinedData;
public readonly ref uint this[int i] => ref *(uint*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="uint"/> value representing the <c>X</c> component.
/// </summary>
public ref uint X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref uint X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="uint"/> value representing the <c>Y</c> component.
/// </summary>
public ref uint Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref uint Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a reference to the <see cref="uint"/> value representing the <c>Z</c> component.
/// </summary>
public ref uint Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
public readonly ref uint Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="X"/>, <see cref="X"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly UInt2 XX => ref *(UInt2*)UndefinedData;
public readonly ref readonly UInt2 XX => ref *(UInt2*)UndefinedData;
/// <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>
public ref UInt2 XY => ref *(UInt2*)UndefinedData;
public readonly ref UInt2 XY => ref *(UInt2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref UInt2 XZ => ref *(UInt2*)UndefinedData;
public readonly ref UInt2 XZ => ref *(UInt2*)UndefinedData;
/// <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>
public ref UInt2 YX => ref *(UInt2*)UndefinedData;
public readonly ref UInt2 YX => ref *(UInt2*)UndefinedData;
/// <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>
public ref readonly UInt2 YY => ref *(UInt2*)UndefinedData;
public readonly ref readonly UInt2 YY => ref *(UInt2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref UInt2 YZ => ref *(UInt2*)UndefinedData;
public readonly ref UInt2 YZ => ref *(UInt2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="Z"/>, <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>
public ref UInt2 ZX => ref *(UInt2*)UndefinedData;
public readonly ref UInt2 ZX => ref *(UInt2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="Z"/>, <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>
public ref UInt2 ZY => ref *(UInt2*)UndefinedData;
public readonly ref UInt2 ZY => ref *(UInt2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly UInt2 ZZ => ref *(UInt2*)UndefinedData;
public readonly ref readonly UInt2 ZZ => ref *(UInt2*)UndefinedData;
/// <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>
public ref readonly UInt3 XXX => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 XXX => ref *(UInt3*)UndefinedData;
/// <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>
public ref readonly UInt3 XXY => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 XXY => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref readonly UInt3 XXZ => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 XXZ => ref *(UInt3*)UndefinedData;
/// <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>
public ref readonly UInt3 XYX => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 XYX => ref *(UInt3*)UndefinedData;
/// <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>
public ref readonly UInt3 XYY => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 XYY => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref UInt3 XYZ => ref *(UInt3*)UndefinedData;
public readonly ref UInt3 XYZ => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <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>
public ref readonly UInt3 XZX => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 XZX => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <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>
public ref UInt3 XZY => ref *(UInt3*)UndefinedData;
public readonly ref UInt3 XZY => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly UInt3 XZZ => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 XZZ => ref *(UInt3*)UndefinedData;
/// <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>
public ref readonly UInt3 YXX => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 YXX => ref *(UInt3*)UndefinedData;
/// <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>
public ref readonly UInt3 YXY => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 YXY => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref UInt3 YXZ => ref *(UInt3*)UndefinedData;
public readonly ref UInt3 YXZ => ref *(UInt3*)UndefinedData;
/// <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>
public ref readonly UInt3 YYX => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 YYX => ref *(UInt3*)UndefinedData;
/// <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>
public ref readonly UInt3 YYY => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 YYY => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref readonly UInt3 YYZ => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 YYZ => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <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>
public ref UInt3 YZX => ref *(UInt3*)UndefinedData;
public readonly ref UInt3 YZX => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <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>
public ref readonly UInt3 YZY => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 YZY => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly UInt3 YZZ => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 YZZ => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <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>
public ref readonly UInt3 ZXX => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 ZXX => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <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>
public ref UInt3 ZXY => ref *(UInt3*)UndefinedData;
public readonly ref UInt3 ZXY => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="Z"/>.
/// </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>
public ref readonly UInt3 ZXZ => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 ZXZ => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <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>
public ref UInt3 ZYX => ref *(UInt3*)UndefinedData;
public readonly ref UInt3 ZYX => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <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>
public ref readonly UInt3 ZYY => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 ZYY => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </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>
public ref readonly UInt3 ZYZ => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 ZYZ => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <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>
public ref readonly UInt3 ZZX => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 ZZX => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <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>
public ref readonly UInt3 ZZY => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 ZZY => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </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>
public ref readonly UInt3 ZZZ => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 ZZZ => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="uint"/> value representing the <c>R</c> component.
/// </summary>
public ref uint R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
public readonly ref uint R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.x), 1));
/// <summary>
/// Gets a reference to the <see cref="uint"/> value representing the <c>G</c> component.
/// </summary>
public ref uint G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
public readonly ref uint G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.y), 1));
/// <summary>
/// Gets a reference to the <see cref="uint"/> value representing the <c>B</c> component.
/// </summary>
public ref uint B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
public readonly ref uint B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.z), 1));
/// <summary>
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="R"/>, <see cref="R"/>.
/// </summary>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref readonly UInt2 RR => ref *(UInt2*)UndefinedData;
public readonly ref readonly UInt2 RR => ref *(UInt2*)UndefinedData;
/// <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>
public ref UInt2 RG => ref *(UInt2*)UndefinedData;
public readonly ref UInt2 RG => ref *(UInt2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref UInt2 RB => ref *(UInt2*)UndefinedData;
public readonly ref UInt2 RB => ref *(UInt2*)UndefinedData;
/// <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>
public ref UInt2 GR => ref *(UInt2*)UndefinedData;
public readonly ref UInt2 GR => ref *(UInt2*)UndefinedData;
/// <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>
public ref readonly UInt2 GG => ref *(UInt2*)UndefinedData;
public readonly ref readonly UInt2 GG => ref *(UInt2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref UInt2 GB => ref *(UInt2*)UndefinedData;
public readonly ref UInt2 GB => ref *(UInt2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="B"/>, <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>
public ref UInt2 BR => ref *(UInt2*)UndefinedData;
public readonly ref UInt2 BR => ref *(UInt2*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="B"/>, <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>
public ref UInt2 BG => ref *(UInt2*)UndefinedData;
public readonly ref UInt2 BG => ref *(UInt2*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly UInt2 BB => ref *(UInt2*)UndefinedData;
public readonly ref readonly UInt2 BB => ref *(UInt2*)UndefinedData;
/// <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>
public ref readonly UInt3 RRR => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 RRR => ref *(UInt3*)UndefinedData;
/// <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>
public ref readonly UInt3 RRG => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 RRG => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref readonly UInt3 RRB => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 RRB => ref *(UInt3*)UndefinedData;
/// <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>
public ref readonly UInt3 RGR => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 RGR => ref *(UInt3*)UndefinedData;
/// <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>
public ref readonly UInt3 RGG => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 RGG => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref UInt3 RGB => ref *(UInt3*)UndefinedData;
public readonly ref UInt3 RGB => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="B"/>, <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>
public ref readonly UInt3 RBR => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 RBR => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="B"/>, <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>
public ref UInt3 RBG => ref *(UInt3*)UndefinedData;
public readonly ref UInt3 RBG => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly UInt3 RBB => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 RBB => ref *(UInt3*)UndefinedData;
/// <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>
public ref readonly UInt3 GRR => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 GRR => ref *(UInt3*)UndefinedData;
/// <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>
public ref readonly UInt3 GRG => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 GRG => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref UInt3 GRB => ref *(UInt3*)UndefinedData;
public readonly ref UInt3 GRB => ref *(UInt3*)UndefinedData;
/// <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>
public ref readonly UInt3 GGR => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 GGR => ref *(UInt3*)UndefinedData;
/// <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>
public ref readonly UInt3 GGG => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 GGG => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref readonly UInt3 GGB => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 GGB => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="B"/>, <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>
public ref UInt3 GBR => ref *(UInt3*)UndefinedData;
public readonly ref UInt3 GBR => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="B"/>, <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>
public ref readonly UInt3 GBG => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 GBG => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly UInt3 GBB => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 GBB => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <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>
public ref readonly UInt3 BRR => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 BRR => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <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>
public ref UInt3 BRG => ref *(UInt3*)UndefinedData;
public readonly ref UInt3 BRG => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="B"/>.
/// </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>
public ref readonly UInt3 BRB => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 BRB => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <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>
public ref UInt3 BGR => ref *(UInt3*)UndefinedData;
public readonly ref UInt3 BGR => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <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>
public ref readonly UInt3 BGG => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 BGG => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="B"/>.
/// </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>
public ref readonly UInt3 BGB => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 BGB => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <see cref="B"/>, <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>
public ref readonly UInt3 BBR => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 BBR => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <see cref="B"/>, <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>
public ref readonly UInt3 BBG => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 BBG => ref *(UInt3*)UndefinedData;
/// <summary>
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="B"/>.
/// </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>
public ref readonly UInt3 BBB => ref *(UInt3*)UndefinedData;
public readonly ref readonly UInt3 BBB => ref *(UInt3*)UndefinedData;
/// <summary>
/// Sums two <see cref="UInt3"/> values.
ファイル差分が大きすぎるため表示されません。 差分を読み込み
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+6 -7
ファイルの表示
@@ -66,10 +66,9 @@ void GenerateVectorProperties(string typeName, int elementSize)
string hlslElementTypeName = elementTypeName.ToLower();
int i = int.Parse(Regex.Match(typeName, @"\d+$").Value);
#>
using System.Runtime.InteropServices;
#if NET5_0
using System.Runtime.CompilerServices;
#else
using System.Runtime.InteropServices;
#if !NET5_0
using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers;
using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal;
#endif
@@ -105,7 +104,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="i">The index of the component to access.</param>
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
public ref <#=hlslElementTypeName#> this[int i] => ref *(<#=hlslElementTypeName#>*)UndefinedData;
public readonly ref <#=hlslElementTypeName#> this[int i] => ref *(<#=hlslElementTypeName#>*)UndefinedData;
<#
PushIndent(" ");
PushIndent(" ");
@@ -135,8 +134,8 @@ namespace ComputeSharp
char fieldName = "xyzw"["xyzwrgba".IndexOf(propertyName.ToLower()) % 4];
// Property
Write($"public {refType} {propertyType} {propertyName} ");
WriteLine($"=> ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.{fieldName}, 1));");
Write($"public readonly {refType} {propertyType} {propertyName} ");
WriteLine($"=> ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Unsafe.AsRef(in this.{fieldName}), 1));");
}
else
{
@@ -149,7 +148,7 @@ namespace ComputeSharp
WriteLine("/// <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>");
// Property
Write($"public {refType} {propertyType} {propertyName} ");
Write($"public readonly {refType} {propertyType} {propertyName} ");
WriteLine($"=> ref *({propertyType}*)UndefinedData;");
}
}