Switched vector types to default returns where needed
このコミットが含まれているのは:
1 親
01ba13dfe9
コミット
5f990055b2
28ファイル変更
+7979
-4017
検索条件に一致するファイルはありません
@@ -1,12 +1,17 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Exceptions;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <inheritdoc cref="Bool2"/>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
|
||||
public partial struct Bool2
|
||||
public unsafe partial struct Bool2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool2), sizeof(Bool2));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private bool x;
|
||||
|
||||
@@ -17,66 +22,75 @@ namespace ComputeSharp
|
||||
/// Gets a reference to a specific component in the current <see cref="Bool2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
public ref bool this[int i] => throw new InvalidExecutionContextException($"{typeof(Bool2)}[{typeof(int)}]");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the <c>X</c> component.
|
||||
/// </summary>
|
||||
public ref bool X => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(X)}");
|
||||
public ref bool X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the <c>Y</c> component.
|
||||
/// </summary>
|
||||
public ref bool Y => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(Y)}");
|
||||
public ref bool Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool2 XX => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(XX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Bool2 XY => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(XY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Bool2 YX => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(YX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool2 YY => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(YY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the <c>R</c> component.
|
||||
/// </summary>
|
||||
public ref bool R => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(R)}");
|
||||
public ref bool R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the <c>G</c> component.
|
||||
/// </summary>
|
||||
public ref bool G => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(G)}");
|
||||
public ref bool G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool2 RR => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(RR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Bool2 RG => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(RG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Bool2 GR => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(GR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool2 GG => throw new InvalidExecutionContextException($"{typeof(Bool2)}.{nameof(GG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,17 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Exceptions;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <inheritdoc cref="Bool3"/>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)]
|
||||
public partial struct Bool3
|
||||
public unsafe partial struct Bool3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool3), sizeof(Bool3));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private bool x;
|
||||
|
||||
@@ -20,396 +25,469 @@ namespace ComputeSharp
|
||||
/// Gets a reference to a specific component in the current <see cref="Bool3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
public ref bool this[int i] => throw new InvalidExecutionContextException($"{typeof(Bool3)}[{typeof(int)}]");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the <c>X</c> component.
|
||||
/// </summary>
|
||||
public ref bool X => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(X)}");
|
||||
public ref bool X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the <c>Y</c> component.
|
||||
/// </summary>
|
||||
public ref bool Y => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(Y)}");
|
||||
public ref bool Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the <c>Z</c> component.
|
||||
/// </summary>
|
||||
public ref bool Z => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(Z)}");
|
||||
public ref bool Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool2 XX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Bool2 XY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref Bool2 XZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Bool2 YX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool2 YY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref Bool2 YZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Bool2 ZX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Bool2 ZY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool2 ZZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 XXX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XXX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 XXY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XXY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 XXZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XXZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 XYX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XYX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 XYY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XYY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref Bool3 XYZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XYZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 XZX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XZX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Bool3 XZY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XZY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 XZZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(XZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 YXX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YXX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 YXY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YXY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref Bool3 YXZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YXZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 YYX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YYX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 YYY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YYY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 YYZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YYZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Bool3 YZX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YZX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 YZY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YZY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 YZZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(YZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 ZXX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZXX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Bool3 ZXY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZXY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 ZXZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZXZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Bool3 ZYX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZYX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 ZYY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZYY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 ZYZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZYZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 ZZX => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZZX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 ZZY => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZZY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 ZZZ => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(ZZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the <c>R</c> component.
|
||||
/// </summary>
|
||||
public ref bool R => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(R)}");
|
||||
public ref bool R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the <c>G</c> component.
|
||||
/// </summary>
|
||||
public ref bool G => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(G)}");
|
||||
public ref bool G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="bool"/> value representing the <c>B</c> component.
|
||||
/// </summary>
|
||||
public ref bool B => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(B)}");
|
||||
public ref bool B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool2 RR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Bool2 RG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref Bool2 RB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Bool2 GR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool2 GG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref Bool2 GB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Bool2 BR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool2"/> value with the components <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Bool2 BG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool2"/> value with the components <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool2 BB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 RRR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RRR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 RRG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RRG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 RRB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RRB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 RGR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RGR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 RGG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RGG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref Bool3 RGB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RGB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 RBR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RBR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Bool3 RBG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RBG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 RBB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(RBB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 GRR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GRR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 GRG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GRG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref Bool3 GRB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GRB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 GGR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GGR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 GGG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GGG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 GGB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GGB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Bool3 GBR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GBR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 GBG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GBG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 GBB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(GBB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 BRR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BRR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Bool3 BRG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BRG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 BRB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BRB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Bool3 BGR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BGR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 BGG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BGG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 BGB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BGB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 BBR => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BBR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 BBG => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BBG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Bool3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Bool3 BBB => throw new InvalidExecutionContextException($"{typeof(Bool3)}.{nameof(BBB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
}
|
||||
}
|
||||
ファイル差分が大きすぎるため表示されません。
差分を読み込み
@@ -50,18 +50,21 @@ namespace ComputeSharp
|
||||
/// Casts a <see cref="Double2"/> value to a <see cref="Int2"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xy">The input <see cref="Double2"/> value to cast.</param>
|
||||
public static explicit operator Int2(Double2 xy) => throw new InvalidExecutionContextException($"{nameof(Double2)}.({nameof(Int2)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator Int2(Double2 xy) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Double2"/> value to a <see cref="UInt2"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xy">The input <see cref="Double2"/> value to cast.</param>
|
||||
public static explicit operator UInt2(Double2 xy) => throw new InvalidExecutionContextException($"{nameof(Double2)}.({nameof(UInt2)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator UInt2(Double2 xy) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Double2"/> value to a <see cref="Float2"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xy">The input <see cref="Double2"/> value to cast.</param>
|
||||
public static explicit operator Float2(Double2 xy) => throw new InvalidExecutionContextException($"{nameof(Double2)}.({nameof(Float2)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator Float2(Double2 xy) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,17 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Exceptions;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <inheritdoc cref="Double2"/>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)]
|
||||
public partial struct Double2
|
||||
public unsafe partial struct Double2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double2), sizeof(Double2));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double x;
|
||||
|
||||
@@ -17,100 +22,114 @@ namespace ComputeSharp
|
||||
/// Gets a reference to a specific component in the current <see cref="Double2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
public ref double this[int i] => throw new InvalidExecutionContextException($"{typeof(Double2)}[{typeof(int)}]");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the <c>X</c> component.
|
||||
/// </summary>
|
||||
public ref double X => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(X)}");
|
||||
public ref double X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the <c>Y</c> component.
|
||||
/// </summary>
|
||||
public ref double Y => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(Y)}");
|
||||
public ref double Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double2 XX => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(XX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Double2 XY => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(XY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Double2 YX => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(YX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double2 YY => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(YY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the <c>R</c> component.
|
||||
/// </summary>
|
||||
public ref double R => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(R)}");
|
||||
public ref double R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the <c>G</c> component.
|
||||
/// </summary>
|
||||
public ref double G => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(G)}");
|
||||
public ref double G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double2 RR => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(RR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Double2 RG => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(RG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Double2 GR => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(GR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double2 GG => throw new InvalidExecutionContextException($"{typeof(Double2)}.{nameof(GG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Double2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Double2"/> value to negate.</param>
|
||||
public static Double2 operator -(Double2 xy) => throw new InvalidExecutionContextException($"{typeof(Double2)}.-");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Double2 operator -(Double2 xy) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Double2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to sum.</param>
|
||||
public static Double2 operator +(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{typeof(Double2)}.+");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Double2 operator +(Double2 left, Double2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Double2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to divide.</param>
|
||||
public static Double2 operator /(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{typeof(Double2)}./");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Double2 operator /(Double2 left, Double2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Double2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to multiply.</param>
|
||||
public static Double2 operator *(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{typeof(Double2)}.*");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Double2 operator *(Double2 left, Double2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Double2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double2"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Double2"/> value to subtract.</param>
|
||||
public static Double2 operator -(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{typeof(Double2)}.-");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Double2 operator -(Double2 left, Double2 right) => default;
|
||||
}
|
||||
}
|
||||
@@ -81,18 +81,21 @@ namespace ComputeSharp
|
||||
/// Casts a <see cref="Double3"/> value to a <see cref="Int3"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The input <see cref="Double3"/> value to cast.</param>
|
||||
public static explicit operator Int3(Double3 xyz) => throw new InvalidExecutionContextException($"{nameof(Double3)}.({nameof(Int3)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator Int3(Double3 xyz) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Double3"/> value to a <see cref="UInt3"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The input <see cref="Double3"/> value to cast.</param>
|
||||
public static explicit operator UInt3(Double3 xyz) => throw new InvalidExecutionContextException($"{nameof(Double3)}.({nameof(UInt3)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator UInt3(Double3 xyz) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Double3"/> value to a <see cref="Float3"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The input <see cref="Double3"/> value to cast.</param>
|
||||
public static explicit operator Float3(Double3 xyz) => throw new InvalidExecutionContextException($"{nameof(Double3)}.({nameof(Float3)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator Float3(Double3 xyz) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,17 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Exceptions;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <inheritdoc cref="Double3"/>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 24, Pack = 8)]
|
||||
public partial struct Double3
|
||||
public unsafe partial struct Double3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double3), sizeof(Double3));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private double x;
|
||||
|
||||
@@ -20,430 +25,508 @@ namespace ComputeSharp
|
||||
/// Gets a reference to a specific component in the current <see cref="Double3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
public ref double this[int i] => throw new InvalidExecutionContextException($"{typeof(Double3)}[{typeof(int)}]");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the <c>X</c> component.
|
||||
/// </summary>
|
||||
public ref double X => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(X)}");
|
||||
public ref double X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the <c>Y</c> component.
|
||||
/// </summary>
|
||||
public ref double Y => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(Y)}");
|
||||
public ref double Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the <c>Z</c> component.
|
||||
/// </summary>
|
||||
public ref double Z => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(Z)}");
|
||||
public ref double Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double2 XX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Double2 XY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref Double2 XZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Double2 YX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double2 YY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref Double2 YZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Double2 ZX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Double2 ZY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double2 ZZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 XXX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XXX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 XXY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XXY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 XXZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XXZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 XYX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XYX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 XYY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XYY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref Double3 XYZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XYZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 XZX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XZX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Double3 XZY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XZY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 XZZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(XZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 YXX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YXX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 YXY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YXY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref Double3 YXZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YXZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 YYX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YYX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 YYY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YYY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 YYZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YYZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Double3 YZX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YZX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 YZY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YZY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 YZZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(YZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 ZXX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZXX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Double3 ZXY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZXY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 ZXZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZXZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Double3 ZYX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZYX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 ZYY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZYY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 ZYZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZYZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 ZZX => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZZX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 ZZY => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZZY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 ZZZ => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(ZZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the <c>R</c> component.
|
||||
/// </summary>
|
||||
public ref double R => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(R)}");
|
||||
public ref double R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the <c>G</c> component.
|
||||
/// </summary>
|
||||
public ref double G => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(G)}");
|
||||
public ref double G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="double"/> value representing the <c>B</c> component.
|
||||
/// </summary>
|
||||
public ref double B => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(B)}");
|
||||
public ref double B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double2 RR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Double2 RG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref Double2 RB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Double2 GR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double2 GG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref Double2 GB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Double2 BR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double2"/> value with the components <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Double2 BG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double2"/> value with the components <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double2 BB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 RRR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RRR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 RRG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RRG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 RRB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RRB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 RGR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RGR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 RGG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RGG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref Double3 RGB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RGB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 RBR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RBR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Double3 RBG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RBG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 RBB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(RBB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 GRR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GRR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 GRG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GRG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref Double3 GRB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GRB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 GGR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GGR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 GGG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GGG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 GGB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GGB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Double3 GBR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GBR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 GBG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GBG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 GBB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(GBB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 BRR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BRR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Double3 BRG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BRG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 BRB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BRB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Double3 BGR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BGR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 BGG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BGG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 BGB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BGB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 BBR => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BBR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 BBG => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BBG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Double3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Double3 BBB => throw new InvalidExecutionContextException($"{typeof(Double3)}.{nameof(BBB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Double3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Double3"/> value to negate.</param>
|
||||
public static Double3 operator -(Double3 xyz) => throw new InvalidExecutionContextException($"{typeof(Double3)}.-");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Double3 operator -(Double3 xyz) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Double3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to sum.</param>
|
||||
public static Double3 operator +(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{typeof(Double3)}.+");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Double3 operator +(Double3 left, Double3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Double3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to divide.</param>
|
||||
public static Double3 operator /(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{typeof(Double3)}./");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Double3 operator /(Double3 left, Double3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Double3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to multiply.</param>
|
||||
public static Double3 operator *(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{typeof(Double3)}.*");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Double3 operator *(Double3 left, Double3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Double3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Double3"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Double3"/> value to subtract.</param>
|
||||
public static Double3 operator -(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{typeof(Double3)}.-");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Double3 operator -(Double3 left, Double3 right) => default;
|
||||
}
|
||||
}
|
||||
@@ -131,18 +131,21 @@ namespace ComputeSharp
|
||||
/// Casts a <see cref="Double4"/> value to a <see cref="Int4"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The input <see cref="Double4"/> value to cast.</param>
|
||||
public static explicit operator Int4(Double4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Double4)}.({nameof(Int4)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator Int4(Double4 xyzw) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Double4"/> value to a <see cref="UInt4"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The input <see cref="Double4"/> value to cast.</param>
|
||||
public static explicit operator UInt4(Double4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Double4)}.({nameof(UInt4)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator UInt4(Double4 xyzw) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Double4"/> value to a <see cref="Float4"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The input <see cref="Double4"/> value to cast.</param>
|
||||
public static explicit operator Float4(Double4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Double4)}.({nameof(Float4)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator Float4(Double4 xyzw) => default;
|
||||
}
|
||||
}
|
||||
ファイル差分が大きすぎるため表示されません。
差分を読み込み
@@ -63,18 +63,21 @@ namespace ComputeSharp
|
||||
/// Casts a <see cref="Float2"/> value to a <see cref="Double2"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xy">The input <see cref="Float2"/> value to cast.</param>
|
||||
public static implicit operator Double2(Float2 xy) => throw new InvalidExecutionContextException($"{nameof(Float2)}.({nameof(Double2)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Double2(Float2 xy) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Float2"/> value to a <see cref="Int2"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xy">The input <see cref="Float2"/> value to cast.</param>
|
||||
public static explicit operator Int2(Float2 xy) => throw new InvalidExecutionContextException($"{nameof(Float2)}.({nameof(Int2)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator Int2(Float2 xy) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Float2"/> value to a <see cref="UInt2"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xy">The input <see cref="Float2"/> value to cast.</param>
|
||||
public static explicit operator UInt2(Float2 xy) => throw new InvalidExecutionContextException($"{nameof(Float2)}.({nameof(UInt2)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator UInt2(Float2 xy) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,17 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Exceptions;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <inheritdoc cref="Float2"/>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
|
||||
public partial struct Float2
|
||||
public unsafe partial struct Float2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2), sizeof(Float2));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float x;
|
||||
|
||||
@@ -17,100 +22,114 @@ namespace ComputeSharp
|
||||
/// Gets a reference to a specific component in the current <see cref="Float2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
public ref float this[int i] => throw new InvalidExecutionContextException($"{typeof(Float2)}[{typeof(int)}]");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the <c>X</c> component.
|
||||
/// </summary>
|
||||
public ref float X => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(X)}");
|
||||
public ref float X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the <c>Y</c> component.
|
||||
/// </summary>
|
||||
public ref float Y => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(Y)}");
|
||||
public ref float Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float2 XX => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(XX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Float2 XY => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(XY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Float2 YX => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(YX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float2 YY => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(YY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the <c>R</c> component.
|
||||
/// </summary>
|
||||
public ref float R => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(R)}");
|
||||
public ref float R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the <c>G</c> component.
|
||||
/// </summary>
|
||||
public ref float G => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(G)}");
|
||||
public ref float G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float2 RR => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(RR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Float2 RG => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(RG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Float2 GR => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(GR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float2 GG => throw new InvalidExecutionContextException($"{typeof(Float2)}.{nameof(GG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Float2"/> value to negate.</param>
|
||||
public static Float2 operator -(Float2 xy) => throw new InvalidExecutionContextException($"{typeof(Float2)}.-");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Float2 operator -(Float2 xy) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Float2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to sum.</param>
|
||||
public static Float2 operator +(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{typeof(Float2)}.+");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Float2 operator +(Float2 left, Float2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Float2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to divide.</param>
|
||||
public static Float2 operator /(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{typeof(Float2)}./");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Float2 operator /(Float2 left, Float2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Float2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to multiply.</param>
|
||||
public static Float2 operator *(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{typeof(Float2)}.*");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Float2 operator *(Float2 left, Float2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Float2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float2"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Float2"/> value to subtract.</param>
|
||||
public static Float2 operator -(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{typeof(Float2)}.-");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Float2 operator -(Float2 left, Float2 right) => default;
|
||||
}
|
||||
}
|
||||
@@ -94,18 +94,21 @@ namespace ComputeSharp
|
||||
/// Casts a <see cref="Float3"/> value to a <see cref="Double3"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The input <see cref="Float3"/> value to cast.</param>
|
||||
public static implicit operator Double3(Float3 xyz) => throw new InvalidExecutionContextException($"{nameof(Float3)}.({nameof(Double3)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Double3(Float3 xyz) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Float3"/> value to a <see cref="Int3"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The input <see cref="Float3"/> value to cast.</param>
|
||||
public static explicit operator Int3(Float3 xyz) => throw new InvalidExecutionContextException($"{nameof(Float3)}.({nameof(Int3)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator Int3(Float3 xyz) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Float3"/> value to a <see cref="UInt3"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The input <see cref="Float3"/> value to cast.</param>
|
||||
public static explicit operator UInt3(Float3 xyz) => throw new InvalidExecutionContextException($"{nameof(Float3)}.({nameof(UInt3)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator UInt3(Float3 xyz) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,17 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Exceptions;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <inheritdoc cref="Float3"/>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)]
|
||||
public partial struct Float3
|
||||
public unsafe partial struct Float3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float3), sizeof(Float3));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private float x;
|
||||
|
||||
@@ -20,430 +25,508 @@ namespace ComputeSharp
|
||||
/// Gets a reference to a specific component in the current <see cref="Float3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
public ref float this[int i] => throw new InvalidExecutionContextException($"{typeof(Float3)}[{typeof(int)}]");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the <c>X</c> component.
|
||||
/// </summary>
|
||||
public ref float X => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(X)}");
|
||||
public ref float X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the <c>Y</c> component.
|
||||
/// </summary>
|
||||
public ref float Y => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(Y)}");
|
||||
public ref float Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the <c>Z</c> component.
|
||||
/// </summary>
|
||||
public ref float Z => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(Z)}");
|
||||
public ref float Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float2 XX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Float2 XY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref Float2 XZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Float2 YX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float2 YY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref Float2 YZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Float2 ZX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Float2 ZY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float2 ZZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 XXX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XXX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 XXY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XXY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 XXZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XXZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 XYX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XYX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 XYY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XYY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref Float3 XYZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XYZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 XZX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XZX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Float3 XZY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XZY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 XZZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(XZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 YXX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YXX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 YXY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YXY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref Float3 YXZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YXZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 YYX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YYX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 YYY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YYY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 YYZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YYZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Float3 YZX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YZX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 YZY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YZY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 YZZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(YZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 ZXX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZXX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Float3 ZXY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZXY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 ZXZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZXZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Float3 ZYX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZYX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 ZYY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZYY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 ZYZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZYZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 ZZX => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZZX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 ZZY => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZZY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 ZZZ => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(ZZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the <c>R</c> component.
|
||||
/// </summary>
|
||||
public ref float R => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(R)}");
|
||||
public ref float R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the <c>G</c> component.
|
||||
/// </summary>
|
||||
public ref float G => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(G)}");
|
||||
public ref float G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="float"/> value representing the <c>B</c> component.
|
||||
/// </summary>
|
||||
public ref float B => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(B)}");
|
||||
public ref float B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float2 RR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Float2 RG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref Float2 RB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Float2 GR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float2 GG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref Float2 GB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Float2 BR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float2"/> value with the components <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Float2 BG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float2"/> value with the components <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float2 BB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 RRR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RRR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 RRG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RRG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 RRB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RRB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 RGR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RGR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 RGG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RGG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref Float3 RGB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RGB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 RBR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RBR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Float3 RBG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RBG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 RBB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(RBB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 GRR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GRR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 GRG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GRG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref Float3 GRB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GRB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 GGR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GGR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 GGG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GGG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 GGB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GGB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Float3 GBR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GBR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 GBG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GBG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 GBB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(GBB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 BRR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BRR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Float3 BRG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BRG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 BRB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BRB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Float3 BGR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BGR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 BGG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BGG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 BGB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BGB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 BBR => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BBR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 BBG => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BBG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Float3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Float3 BBB => throw new InvalidExecutionContextException($"{typeof(Float3)}.{nameof(BBB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Float3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Float3"/> value to negate.</param>
|
||||
public static Float3 operator -(Float3 xyz) => throw new InvalidExecutionContextException($"{typeof(Float3)}.-");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Float3 operator -(Float3 xyz) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Float3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to sum.</param>
|
||||
public static Float3 operator +(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{typeof(Float3)}.+");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Float3 operator +(Float3 left, Float3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Float3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to divide.</param>
|
||||
public static Float3 operator /(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{typeof(Float3)}./");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Float3 operator /(Float3 left, Float3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Float3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to multiply.</param>
|
||||
public static Float3 operator *(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{typeof(Float3)}.*");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Float3 operator *(Float3 left, Float3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Float3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Float3"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Float3"/> value to subtract.</param>
|
||||
public static Float3 operator -(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{typeof(Float3)}.-");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Float3 operator -(Float3 left, Float3 right) => default;
|
||||
}
|
||||
}
|
||||
@@ -144,18 +144,21 @@ namespace ComputeSharp
|
||||
/// Casts a <see cref="Float4"/> value to a <see cref="Double4"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The input <see cref="Float4"/> value to cast.</param>
|
||||
public static implicit operator Double4(Float4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Float4)}.({nameof(Double4)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Double4(Float4 xyzw) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Float4"/> value to a <see cref="Int4"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The input <see cref="Float4"/> value to cast.</param>
|
||||
public static explicit operator Int4(Float4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Float4)}.({nameof(Int4)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator Int4(Float4 xyzw) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Float4"/> value to a <see cref="UInt4"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The input <see cref="Float4"/> value to cast.</param>
|
||||
public static explicit operator UInt4(Float4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Float4)}.({nameof(UInt4)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator UInt4(Float4 xyzw) => default;
|
||||
}
|
||||
}
|
||||
ファイル差分が大きすぎるため表示されません。
差分を読み込み
@@ -50,18 +50,21 @@ namespace ComputeSharp
|
||||
/// Casts a <see cref="Int2"/> value to a <see cref="UInt2"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xy">The input <see cref="Int2"/> value to cast.</param>
|
||||
public static explicit operator UInt2(Int2 xy) => throw new InvalidExecutionContextException($"{nameof(Int2)}.({nameof(UInt2)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator UInt2(Int2 xy) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Int2"/> value to a <see cref="Float2"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xy">The input <see cref="Int2"/> value to cast.</param>
|
||||
public static implicit operator Float2(Int2 xy) => throw new InvalidExecutionContextException($"{nameof(Int2)}.({nameof(Float2)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Float2(Int2 xy) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Int2"/> value to a <see cref="Double2"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xy">The input <see cref="Int2"/> value to cast.</param>
|
||||
public static implicit operator Double2(Int2 xy) => throw new InvalidExecutionContextException($"{nameof(Int2)}.({nameof(Double2)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Double2(Int2 xy) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,17 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Exceptions;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <inheritdoc cref="Int2"/>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
|
||||
public partial struct Int2
|
||||
public unsafe partial struct Int2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int2), sizeof(Int2));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int x;
|
||||
|
||||
@@ -17,100 +22,114 @@ namespace ComputeSharp
|
||||
/// Gets a reference to a specific component in the current <see cref="Int2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
public ref int this[int i] => throw new InvalidExecutionContextException($"{typeof(Int2)}[{typeof(int)}]");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the <c>X</c> component.
|
||||
/// </summary>
|
||||
public ref int X => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(X)}");
|
||||
public ref int X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the <c>Y</c> component.
|
||||
/// </summary>
|
||||
public ref int Y => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(Y)}");
|
||||
public ref int Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int2 XX => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(XX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Int2 XY => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(XY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Int2 YX => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(YX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int2 YY => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(YY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the <c>R</c> component.
|
||||
/// </summary>
|
||||
public ref int R => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(R)}");
|
||||
public ref int R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the <c>G</c> component.
|
||||
/// </summary>
|
||||
public ref int G => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(G)}");
|
||||
public ref int G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int2 RR => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(RR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Int2 RG => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(RG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Int2 GR => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(GR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int2 GG => throw new InvalidExecutionContextException($"{typeof(Int2)}.{nameof(GG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Int2"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xy">The <see cref="Int2"/> value to negate.</param>
|
||||
public static Int2 operator -(Int2 xy) => throw new InvalidExecutionContextException($"{typeof(Int2)}.-");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Int2 operator -(Int2 xy) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Int2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to sum.</param>
|
||||
public static Int2 operator +(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{typeof(Int2)}.+");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Int2 operator +(Int2 left, Int2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Int2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to divide.</param>
|
||||
public static Int2 operator /(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{typeof(Int2)}./");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Int2 operator /(Int2 left, Int2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Int2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to multiply.</param>
|
||||
public static Int2 operator *(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{typeof(Int2)}.*");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Int2 operator *(Int2 left, Int2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Int2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int2"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Int2"/> value to subtract.</param>
|
||||
public static Int2 operator -(Int2 left, Int2 right) => throw new InvalidExecutionContextException($"{typeof(Int2)}.-");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Int2 operator -(Int2 left, Int2 right) => default;
|
||||
}
|
||||
}
|
||||
@@ -81,18 +81,21 @@ namespace ComputeSharp
|
||||
/// Casts a <see cref="Int3"/> value to a <see cref="UInt3"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The input <see cref="Int3"/> value to cast.</param>
|
||||
public static explicit operator UInt3(Int3 xyz) => throw new InvalidExecutionContextException($"{nameof(Int3)}.({nameof(UInt3)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator UInt3(Int3 xyz) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Int3"/> value to a <see cref="Float3"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The input <see cref="Int3"/> value to cast.</param>
|
||||
public static implicit operator Float3(Int3 xyz) => throw new InvalidExecutionContextException($"{nameof(Int3)}.({nameof(Float3)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Float3(Int3 xyz) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Int3"/> value to a <see cref="Double3"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The input <see cref="Int3"/> value to cast.</param>
|
||||
public static implicit operator Double3(Int3 xyz) => throw new InvalidExecutionContextException($"{nameof(Int3)}.({nameof(Double3)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Double3(Int3 xyz) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,17 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Exceptions;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <inheritdoc cref="Int3"/>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)]
|
||||
public partial struct Int3
|
||||
public unsafe partial struct Int3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int3), sizeof(Int3));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private int x;
|
||||
|
||||
@@ -20,430 +25,508 @@ namespace ComputeSharp
|
||||
/// Gets a reference to a specific component in the current <see cref="Int3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
public ref int this[int i] => throw new InvalidExecutionContextException($"{typeof(Int3)}[{typeof(int)}]");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the <c>X</c> component.
|
||||
/// </summary>
|
||||
public ref int X => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(X)}");
|
||||
public ref int X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the <c>Y</c> component.
|
||||
/// </summary>
|
||||
public ref int Y => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(Y)}");
|
||||
public ref int Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the <c>Z</c> component.
|
||||
/// </summary>
|
||||
public ref int Z => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(Z)}");
|
||||
public ref int Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int2 XX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Int2 XY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref Int2 XZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Int2 YX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int2 YY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref Int2 YZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Int2 ZX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Int2 ZY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int2 ZZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 XXX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XXX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 XXY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XXY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 XXZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XXZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 XYX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XYX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 XYY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XYY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref Int3 XYZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XYZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 XZX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XZX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Int3 XZY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XZY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 XZZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(XZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 YXX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YXX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 YXY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YXY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref Int3 YXZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YXZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 YYX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YYX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 YYY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YYY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 YYZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YYZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Int3 YZX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YZX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 YZY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YZY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 YZZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(YZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 ZXX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZXX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref Int3 ZXY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZXY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 ZXZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZXZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref Int3 ZYX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZYX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 ZYY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZYY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 ZYZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZYZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 ZZX => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZZX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 ZZY => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZZY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 ZZZ => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(ZZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the <c>R</c> component.
|
||||
/// </summary>
|
||||
public ref int R => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(R)}");
|
||||
public ref int R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the <c>G</c> component.
|
||||
/// </summary>
|
||||
public ref int G => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(G)}");
|
||||
public ref int G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="int"/> value representing the <c>B</c> component.
|
||||
/// </summary>
|
||||
public ref int B => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(B)}");
|
||||
public ref int B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int2 RR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Int2 RG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref Int2 RB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Int2 GR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int2 GG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref Int2 GB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Int2 BR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Int2 BG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int2 BB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 RRR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RRR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 RRG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RRG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 RRB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RRB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 RGR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RGR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 RGG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RGG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref Int3 RGB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RGB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 RBR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RBR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Int3 RBG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RBG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 RBB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(RBB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 GRR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GRR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 GRG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GRG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref Int3 GRB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GRB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 GGR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GGR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 GGG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GGG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 GGB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GGB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Int3 GBR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GBR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 GBG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GBG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 GBB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(GBB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 BRR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BRR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref Int3 BRG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BRG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 BRB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BRB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref Int3 BGR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BGR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 BGG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BGG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 BGB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BGB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 BBR => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BBR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 BBG => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BBG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly Int3 BBB => throw new InvalidExecutionContextException($"{typeof(Int3)}.{nameof(BBB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Negates a <see cref="Int3"/> value.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The <see cref="Int3"/> value to negate.</param>
|
||||
public static Int3 operator -(Int3 xyz) => throw new InvalidExecutionContextException($"{typeof(Int3)}.-");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Int3 operator -(Int3 xyz) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="Int3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to sum.</param>
|
||||
public static Int3 operator +(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{typeof(Int3)}.+");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Int3 operator +(Int3 left, Int3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="Int3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to divide.</param>
|
||||
public static Int3 operator /(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{typeof(Int3)}./");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Int3 operator /(Int3 left, Int3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="Int3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to multiply.</param>
|
||||
public static Int3 operator *(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{typeof(Int3)}.*");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Int3 operator *(Int3 left, Int3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="Int3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="Int3"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="Int3"/> value to subtract.</param>
|
||||
public static Int3 operator -(Int3 left, Int3 right) => throw new InvalidExecutionContextException($"{typeof(Int3)}.-");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static Int3 operator -(Int3 left, Int3 right) => default;
|
||||
}
|
||||
}
|
||||
@@ -131,18 +131,21 @@ namespace ComputeSharp
|
||||
/// Casts a <see cref="Int4"/> value to a <see cref="UInt4"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The input <see cref="Int4"/> value to cast.</param>
|
||||
public static explicit operator UInt4(Int4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Int4)}.({nameof(UInt4)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator UInt4(Int4 xyzw) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Int4"/> value to a <see cref="Float4"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The input <see cref="Int4"/> value to cast.</param>
|
||||
public static implicit operator Float4(Int4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Int4)}.({nameof(Float4)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Float4(Int4 xyzw) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="Int4"/> value to a <see cref="Double4"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The input <see cref="Int4"/> value to cast.</param>
|
||||
public static implicit operator Double4(Int4 xyzw) => throw new InvalidExecutionContextException($"{nameof(Int4)}.({nameof(Double4)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Double4(Int4 xyzw) => default;
|
||||
}
|
||||
}
|
||||
ファイル差分が大きすぎるため表示されません。
差分を読み込み
@@ -50,18 +50,21 @@ namespace ComputeSharp
|
||||
/// Casts a <see cref="UInt2"/> value to a <see cref="Int2"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xy">The input <see cref="UInt2"/> value to cast.</param>
|
||||
public static explicit operator Int2(UInt2 xy) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.({nameof(Int2)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator Int2(UInt2 xy) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="UInt2"/> value to a <see cref="Float2"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xy">The input <see cref="UInt2"/> value to cast.</param>
|
||||
public static implicit operator Float2(UInt2 xy) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.({nameof(Float2)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Float2(UInt2 xy) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="UInt2"/> value to a <see cref="Double2"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xy">The input <see cref="UInt2"/> value to cast.</param>
|
||||
public static implicit operator Double2(UInt2 xy) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.({nameof(Double2)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Double2(UInt2 xy) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,17 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Exceptions;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <inheritdoc cref="UInt2"/>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)]
|
||||
public partial struct UInt2
|
||||
public unsafe partial struct UInt2
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt2), sizeof(UInt2));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint x;
|
||||
|
||||
@@ -17,94 +22,107 @@ namespace ComputeSharp
|
||||
/// Gets a reference to a specific component in the current <see cref="UInt2"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
public ref uint this[int i] => throw new InvalidExecutionContextException($"{typeof(UInt2)}[{typeof(int)}]");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the <c>X</c> component.
|
||||
/// </summary>
|
||||
public ref uint X => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(X)}");
|
||||
public ref uint X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the <c>Y</c> component.
|
||||
/// </summary>
|
||||
public ref uint Y => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(Y)}");
|
||||
public ref uint Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt2 XX => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(XX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref UInt2 XY => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(XY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref UInt2 YX => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(YX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt2 YY => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(YY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the <c>R</c> component.
|
||||
/// </summary>
|
||||
public ref uint R => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(R)}");
|
||||
public ref uint R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the <c>G</c> component.
|
||||
/// </summary>
|
||||
public ref uint G => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(G)}");
|
||||
public ref uint G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt2 RR => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(RR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref UInt2 RG => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(RG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref UInt2 GR => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(GR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt2 GG => throw new InvalidExecutionContextException($"{typeof(UInt2)}.{nameof(GG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="UInt2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt2"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="UInt2"/> value to sum.</param>
|
||||
public static UInt2 operator +(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{typeof(UInt2)}.+");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static UInt2 operator +(UInt2 left, UInt2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="UInt2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt2"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="UInt2"/> value to divide.</param>
|
||||
public static UInt2 operator /(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{typeof(UInt2)}./");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static UInt2 operator /(UInt2 left, UInt2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="UInt2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt2"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="UInt2"/> value to multiply.</param>
|
||||
public static UInt2 operator *(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{typeof(UInt2)}.*");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static UInt2 operator *(UInt2 left, UInt2 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="UInt2"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt2"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="UInt2"/> value to subtract.</param>
|
||||
public static UInt2 operator -(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{typeof(UInt2)}.-");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static UInt2 operator -(UInt2 left, UInt2 right) => default;
|
||||
}
|
||||
}
|
||||
@@ -81,18 +81,21 @@ namespace ComputeSharp
|
||||
/// Casts a <see cref="UInt3"/> value to a <see cref="Int3"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The input <see cref="UInt3"/> value to cast.</param>
|
||||
public static explicit operator Int3(UInt3 xyz) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.({nameof(Int3)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator Int3(UInt3 xyz) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="UInt3"/> value to a <see cref="Float3"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The input <see cref="UInt3"/> value to cast.</param>
|
||||
public static implicit operator Float3(UInt3 xyz) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.({nameof(Float3)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Float3(UInt3 xyz) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="UInt3"/> value to a <see cref="Double3"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyz">The input <see cref="UInt3"/> value to cast.</param>
|
||||
public static implicit operator Double3(UInt3 xyz) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.({nameof(Double3)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Double3(UInt3 xyz) => default;
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,17 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Exceptions;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <inheritdoc cref="UInt3"/>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)]
|
||||
public partial struct UInt3
|
||||
public unsafe partial struct UInt3
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt3), sizeof(UInt3));
|
||||
|
||||
[FieldOffset(0)]
|
||||
private uint x;
|
||||
|
||||
@@ -20,424 +25,501 @@ namespace ComputeSharp
|
||||
/// Gets a reference to a specific component in the current <see cref="UInt3"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
public ref uint this[int i] => throw new InvalidExecutionContextException($"{typeof(UInt3)}[{typeof(int)}]");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the <c>X</c> component.
|
||||
/// </summary>
|
||||
public ref uint X => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(X)}");
|
||||
public ref uint X => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the <c>Y</c> component.
|
||||
/// </summary>
|
||||
public ref uint Y => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(Y)}");
|
||||
public ref uint Y => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the <c>Z</c> component.
|
||||
/// </summary>
|
||||
public ref uint Z => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(Z)}");
|
||||
public ref uint Z => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt2 XX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref UInt2 XY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref UInt2 XZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref UInt2 YX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt2 YY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref UInt2 YZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref UInt2 ZX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref UInt2 ZY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt2 ZZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 XXX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XXX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 XXY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XXY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 XXZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XXZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 XYX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XYX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 XYY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XYY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref UInt3 XYZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XYZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 XZX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XZX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref UInt3 XZY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XZY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 XZZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(XZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 YXX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YXX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 YXY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YXY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref UInt3 YXZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YXZ)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 YYX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YYX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 YYY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YYY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 YYZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YYZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref UInt3 YZX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YZX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 YZY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YZY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 YZZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(YZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 ZXX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZXX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref UInt3 ZXY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZXY)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 ZXZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZXZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref UInt3 ZYX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZYX)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 ZYY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZYY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 ZYZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZYZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="X"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 ZZX => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZZX)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="Y"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 ZZY => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZZY)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="Z"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 ZZZ => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(ZZZ)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the <c>R</c> component.
|
||||
/// </summary>
|
||||
public ref uint R => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(R)}");
|
||||
public ref uint R => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.x, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the <c>G</c> component.
|
||||
/// </summary>
|
||||
public ref uint G => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(G)}");
|
||||
public ref uint G => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.y, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="uint"/> value representing the <c>B</c> component.
|
||||
/// </summary>
|
||||
public ref uint B => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(B)}");
|
||||
public ref uint B => ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.z, 1));
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt2 RR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref UInt2 RG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref UInt2 RB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref UInt2 GR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt2 GG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref UInt2 GB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref UInt2 BR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt2"/> value with the components <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref UInt2 BG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt2"/> value with the components <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt2 BB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 RRR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RRR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 RRG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RRG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 RRB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RRB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 RGR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RGR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 RGG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RGG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref UInt3 RGB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RGB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 RBR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RBR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref UInt3 RBG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RBG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 RBB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(RBB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 GRR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GRR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 GRG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GRG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref UInt3 GRB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GRB)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 GGR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GGR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 GGG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GGG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 GGB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GGB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref UInt3 GBR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GBR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 GBG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GBG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 GBB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(GBB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 BRR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BRR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref UInt3 BRG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BRG)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 BRB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BRB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref UInt3 BGR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BGR)}");
|
||||
/// <remarks>This method is 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 BGG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BGG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 BGB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BGB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="R"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 BBR => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BBR)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="G"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 BBG => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BBG)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a readonly reference to the <see cref="UInt3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="B"/>.
|
||||
/// </summary>
|
||||
public ref readonly UInt3 BBB => throw new InvalidExecutionContextException($"{typeof(UInt3)}.{nameof(BBB)}");
|
||||
/// <remarks>This method is an 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;
|
||||
|
||||
/// <summary>
|
||||
/// Sums two <see cref="UInt3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt3"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="UInt3"/> value to sum.</param>
|
||||
public static UInt3 operator +(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{typeof(UInt3)}.+");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static UInt3 operator +(UInt3 left, UInt3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="UInt3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt3"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="UInt3"/> value to divide.</param>
|
||||
public static UInt3 operator /(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{typeof(UInt3)}./");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static UInt3 operator /(UInt3 left, UInt3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="UInt3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt3"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="UInt3"/> value to multiply.</param>
|
||||
public static UInt3 operator *(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{typeof(UInt3)}.*");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static UInt3 operator *(UInt3 left, UInt3 right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="UInt3"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="UInt3"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="UInt3"/> value to subtract.</param>
|
||||
public static UInt3 operator -(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{typeof(UInt3)}.-");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static UInt3 operator -(UInt3 left, UInt3 right) => default;
|
||||
}
|
||||
}
|
||||
@@ -131,18 +131,21 @@ namespace ComputeSharp
|
||||
/// Casts a <see cref="UInt4"/> value to a <see cref="Int4"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The input <see cref="UInt4"/> value to cast.</param>
|
||||
public static explicit operator Int4(UInt4 xyzw) => throw new InvalidExecutionContextException($"{nameof(UInt4)}.({nameof(Int4)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static explicit operator Int4(UInt4 xyzw) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="UInt4"/> value to a <see cref="Float4"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The input <see cref="UInt4"/> value to cast.</param>
|
||||
public static implicit operator Float4(UInt4 xyzw) => throw new InvalidExecutionContextException($"{nameof(UInt4)}.({nameof(Float4)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Float4(UInt4 xyzw) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Casts a <see cref="UInt4"/> value to a <see cref="Double4"/> one.
|
||||
/// </summary>
|
||||
/// <param name="xyzw">The input <see cref="UInt4"/> value to cast.</param>
|
||||
public static implicit operator Double4(UInt4 xyzw) => throw new InvalidExecutionContextException($"{nameof(UInt4)}.({nameof(Double4)})");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static implicit operator Double4(UInt4 xyzw) => default;
|
||||
}
|
||||
}
|
||||
ファイル差分が大きすぎるため表示されません。
差分を読み込み
@@ -66,16 +66,21 @@ void GenerateVectorProperties(string typeName, int elementSize)
|
||||
string hlslElementTypeName = elementTypeName.ToLower();
|
||||
int i = int.Parse(Regex.Match(typeName, @"\d+$").Value);
|
||||
#>
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Exceptions;
|
||||
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <inheritdoc cref="<#=typeName#>"/>
|
||||
[StructLayout(LayoutKind.Explicit, Size = <#=(elementSize * i)#>, Pack = <#=elementSize#>)]
|
||||
public partial struct <#=typeName#>
|
||||
public unsafe partial struct <#=typeName#>
|
||||
{
|
||||
/// <summary>
|
||||
/// A private buffer to which the undefined properties will point to.
|
||||
/// </summary>
|
||||
private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(<#=typeName#>), sizeof(<#=typeName#>));
|
||||
<#
|
||||
WriteLine("");
|
||||
PushIndent(" ");
|
||||
PushIndent(" ");
|
||||
|
||||
@@ -94,7 +99,8 @@ namespace ComputeSharp
|
||||
/// Gets a reference to a specific component in the current <see cref="<#=typeName#>"/> instance.
|
||||
/// </summary>
|
||||
/// <param name="i">The index of the component to access.</param>
|
||||
public ref <#=hlslElementTypeName#> this[int i] => throw new InvalidExecutionContextException($"{typeof(<#=typeName#>)}[{typeof(int)}]");
|
||||
/// <remarks>This method is 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;
|
||||
<#
|
||||
PushIndent(" ");
|
||||
PushIndent(" ");
|
||||
@@ -119,6 +125,13 @@ namespace ComputeSharp
|
||||
if (propertyName.Length == 1)
|
||||
{
|
||||
WriteLine($"/// Gets a reference to the <see cref=\"{propertyType}\"/> value representing the <c>{propertyName}</c> component.");
|
||||
WriteLine("/// </summary>");
|
||||
|
||||
char fieldName = "xyzw"["xyzwrgba".IndexOf(propertyName.ToLower()) % 4];
|
||||
|
||||
// Property
|
||||
Write($"public {refType} {propertyType} {propertyName} ");
|
||||
WriteLine($"=> ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref this.{fieldName}, 1));");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -126,13 +139,14 @@ namespace ComputeSharp
|
||||
if (isReadonly) Write("readonly ");
|
||||
Write($"reference to the <see cref=\"{propertyType}\"/> value with the components ");
|
||||
Write(string.Join(", ", propertyName.Select(c => $"<see cref=\"{c}\"/>")));
|
||||
WriteLine(".");
|
||||
}
|
||||
WriteLine("/// </summary>");
|
||||
WriteLine(".");
|
||||
WriteLine("/// </summary>");
|
||||
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} ");
|
||||
WriteLine($"=> throw new InvalidExecutionContextException($\"{{typeof({typeName})}}.{{nameof({propertyName})}}\");");
|
||||
// Property
|
||||
Write($"public {refType} {propertyType} {propertyName} ");
|
||||
WriteLine($"=> ref *({propertyType}*)UndefinedData;");
|
||||
}
|
||||
}
|
||||
|
||||
PopIndent();
|
||||
@@ -149,7 +163,8 @@ namespace ComputeSharp
|
||||
/// Negates a <see cref="<#=typeName#>"/> value.
|
||||
/// </summary>
|
||||
/// <param name="<#=argumentName#>">The <see cref="<#=typeName#>"/> value to negate.</param>
|
||||
public static <#=typeName#> operator -(<#=typeName#> <#=argumentName#>) => throw new InvalidExecutionContextException($"{typeof(<#=typeName#>)}.-");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static <#=typeName#> operator -(<#=typeName#> <#=argumentName#>) => default;
|
||||
<#
|
||||
}
|
||||
|
||||
@@ -163,28 +178,32 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to sum.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to sum.</param>
|
||||
public static <#=typeName#> operator +(<#=typeName#> left, <#=typeName#> right) => throw new InvalidExecutionContextException($"{typeof(<#=typeName#>)}.+");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static <#=typeName#> operator +(<#=typeName#> left, <#=typeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Divides two <see cref="<#=typeName#>"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to divide.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to divide.</param>
|
||||
public static <#=typeName#> operator /(<#=typeName#> left, <#=typeName#> right) => throw new InvalidExecutionContextException($"{typeof(<#=typeName#>)}./");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static <#=typeName#> operator /(<#=typeName#> left, <#=typeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Multiplies two <see cref="<#=typeName#>"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to multiply.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to multiply.</param>
|
||||
public static <#=typeName#> operator *(<#=typeName#> left, <#=typeName#> right) => throw new InvalidExecutionContextException($"{typeof(<#=typeName#>)}.*");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static <#=typeName#> operator *(<#=typeName#> left, <#=typeName#> right) => default;
|
||||
|
||||
/// <summary>
|
||||
/// Subtracts two <see cref="<#=typeName#>"/> values.
|
||||
/// </summary>
|
||||
/// <param name="left">The first <see cref="<#=typeName#>"/> value to subtract.</param>
|
||||
/// <param name="right">The second <see cref="<#=typeName#>"/> value to subtract.</param>
|
||||
public static <#=typeName#> operator -(<#=typeName#> left, <#=typeName#> right) => throw new InvalidExecutionContextException($"{typeof(<#=typeName#>)}.-");
|
||||
/// <remarks>This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior.</remarks>
|
||||
public static <#=typeName#> operator -(<#=typeName#> left, <#=typeName#> right) => default;
|
||||
<#
|
||||
}
|
||||
#>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする