Consolidated library projects into a single one

This is necessary to produce a single output assembly
このコミットが含まれているのは:
Sergio Pedri committed 2021-02-25 18:56:27 +01:00
1 親 a5217eef08
コミット db2cb188ec
163ファイル変更
+228 -312

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

-67
ファイルの表示
@@ -1,67 +0,0 @@
using System.Diagnostics;
using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="int2"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
public partial struct Int2
{
/// <summary>
/// Gets an <see cref="Int2"/> value with all components set to 0.
/// </summary>
public static Int2 Zero => 0;
/// <summary>
/// Gets an <see cref="Int2"/> value with all components set to 1.
/// </summary>
public static Int2 One => 1;
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static Int2 UnitX => new(1, 0);
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static Int2 UnitY => new(0, 1);
/// <summary>
/// Creates a new <see cref="Int2"/> instance with the specified parameters.
/// </summary>
/// <param name="x">The value to assign to the first vector component.</param>
/// <param name="y">The value to assign to the second vector component.</param>
public Int2(int x, int y)
{
this.x = x;
this.y = y;
}
/// <summary>
/// Creates a new <see cref="Int2"/> value with the same value for all its components.
/// </summary>
/// <param name="x">The value to use for the components of the new <see cref="Int2"/> instance.</param>
public static implicit operator Int2(int x) => new(x, x);
/// <summary>
/// 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)})");
/// <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)})");
/// <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)})");
}
}
-256
ファイルの表示
@@ -1,256 +0,0 @@
using System.Runtime.InteropServices;
using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <inheritdoc cref="Int2"/>
[StructLayout(LayoutKind.Explicit, Size = 8)]
public partial struct Int2
{
[FieldOffset(0)]
private int x;
[FieldOffset(4)]
private int y;
/// <summary>
/// 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($"{nameof(Int2)}[int]");
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>X</c> component.
/// </summary>
public ref int X => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(X)}");
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>Y</c> component.
/// </summary>
public ref int Y => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(Y)}");
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>Z</c> component.
/// </summary>
public ref int Z => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(Z)}");
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>W</c> component.
/// </summary>
public ref int W => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(W)}");
/// <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($"{nameof(Int2)}.{nameof(XX)}");
/// <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($"{nameof(Int2)}.{nameof(XY)}");
/// <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($"{nameof(Int2)}.{nameof(XZ)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="X"/>, <see cref="W"/>.
/// </summary>
public ref Int2 XW => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(XW)}");
/// <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($"{nameof(Int2)}.{nameof(YX)}");
/// <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($"{nameof(Int2)}.{nameof(YY)}");
/// <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($"{nameof(Int2)}.{nameof(YZ)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="Y"/>, <see cref="W"/>.
/// </summary>
public ref Int2 YW => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(YW)}");
/// <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($"{nameof(Int2)}.{nameof(ZX)}");
/// <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($"{nameof(Int2)}.{nameof(ZY)}");
/// <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($"{nameof(Int2)}.{nameof(ZZ)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="Z"/>, <see cref="W"/>.
/// </summary>
public ref Int2 ZW => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(ZW)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="W"/>, <see cref="X"/>.
/// </summary>
public ref Int2 WX => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(WX)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="W"/>, <see cref="Y"/>.
/// </summary>
public ref Int2 WY => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(WY)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="W"/>, <see cref="Z"/>.
/// </summary>
public ref Int2 WZ => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(WZ)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="W"/>, <see cref="W"/>.
/// </summary>
public ref readonly Int2 WW => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(WW)}");
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>R</c> component.
/// </summary>
public ref int R => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(R)}");
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>G</c> component.
/// </summary>
public ref int G => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(G)}");
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>B</c> component.
/// </summary>
public ref int B => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(B)}");
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>A</c> component.
/// </summary>
public ref int A => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(A)}");
/// <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($"{nameof(Int2)}.{nameof(RR)}");
/// <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($"{nameof(Int2)}.{nameof(RG)}");
/// <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($"{nameof(Int2)}.{nameof(RB)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="R"/>, <see cref="A"/>.
/// </summary>
public ref Int2 RA => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(RA)}");
/// <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($"{nameof(Int2)}.{nameof(GR)}");
/// <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($"{nameof(Int2)}.{nameof(GG)}");
/// <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($"{nameof(Int2)}.{nameof(GB)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="G"/>, <see cref="A"/>.
/// </summary>
public ref Int2 GA => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(GA)}");
/// <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($"{nameof(Int2)}.{nameof(BR)}");
/// <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($"{nameof(Int2)}.{nameof(BG)}");
/// <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($"{nameof(Int2)}.{nameof(BB)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="B"/>, <see cref="A"/>.
/// </summary>
public ref Int2 BA => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(BA)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="A"/>, <see cref="R"/>.
/// </summary>
public ref Int2 AR => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(AR)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="A"/>, <see cref="G"/>.
/// </summary>
public ref Int2 AG => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(AG)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="A"/>, <see cref="B"/>.
/// </summary>
public ref Int2 AB => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(AB)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="A"/>, <see cref="A"/>.
/// </summary>
public ref readonly Int2 AA => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(AA)}");
/// <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($"{nameof(Int2)}.-");
/// <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($"{nameof(Int2)}.+");
/// <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($"{nameof(Int2)}./");
/// <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($"{nameof(Int2)}.*");
/// <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($"{nameof(Int2)}.-");
}
}
-4
ファイルの表示
@@ -1,4 +0,0 @@
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Int2", sizeof(int));
#>
-98
ファイルの表示
@@ -1,98 +0,0 @@
using System.Diagnostics;
using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="int3"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
public partial struct Int3
{
/// <summary>
/// Gets an <see cref="Int3"/> value with all components set to 0.
/// </summary>
public static Int3 Zero => 0;
/// <summary>
/// Gets an <see cref="Int3"/> value with all components set to 1.
/// </summary>
public static Int3 One => 1;
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static Int3 UnitX => new(1, 0, 0);
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static Int3 UnitY => new(0, 1, 0);
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/> component set to 1, and the others to 0.
/// </summary>
public static Int3 UnitZ => new(0, 0, 1);
/// <summary>
/// Creates a new <see cref="Int3"/> instance with the specified parameters.
/// </summary>
/// <param name="x">The value to assign to the first vector component.</param>
/// <param name="y">The value to assign to the second vector component.</param>
/// <param name="z">The value to assign to the third vector component.</param>
public Int3(int x, int y, int z)
{
this.x = x;
this.y = y;
this.z = z;
}
/// <summary>
/// Creates a new <see cref="Int3"/> instance with the specified parameters.
/// </summary>
/// <param name="xy">The value to assign to the first and second vector components.</param>
/// <param name="z">The value to assign to the third vector component.</param>
public Int3(Int2 xy, int z)
{
this.x = xy.X;
this.y = xy.Y;
this.z = z;
}
/// <summary>
/// Creates a new <see cref="Int3"/> instance with the specified parameters.
/// </summary>
/// <param name="x">The value to assign to the first vector component.</param>
/// <param name="yz">The value to assign to the second and thirt vector components.</param>
public Int3(int x, Int2 yz)
{
this.x = x;
this.y = yz.X;
this.z = yz.Y;
}
/// <summary>
/// Creates a new <see cref="Int3"/> value with the same value for all its components.
/// </summary>
/// <param name="x">The value to use for the components of the new <see cref="Int3"/> instance.</param>
public static implicit operator Int3(int x) => new(x, x, x);
/// <summary>
/// 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)})");
/// <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)})");
/// <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)})");
}
}
-899
ファイルの表示
@@ -1,899 +0,0 @@
using System.Runtime.InteropServices;
using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <inheritdoc cref="Int3"/>
[StructLayout(LayoutKind.Explicit, Size = 12)]
public partial struct Int3
{
[FieldOffset(0)]
private int x;
[FieldOffset(4)]
private int y;
[FieldOffset(8)]
private int z;
/// <summary>
/// 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($"{nameof(Int3)}[int]");
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>X</c> component.
/// </summary>
public ref int X => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(X)}");
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>Y</c> component.
/// </summary>
public ref int Y => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(Y)}");
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>Z</c> component.
/// </summary>
public ref int Z => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(Z)}");
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>W</c> component.
/// </summary>
public ref int W => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(W)}");
/// <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($"{nameof(Int3)}.{nameof(XX)}");
/// <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($"{nameof(Int3)}.{nameof(XY)}");
/// <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($"{nameof(Int3)}.{nameof(XZ)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="X"/>, <see cref="W"/>.
/// </summary>
public ref Int2 XW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XW)}");
/// <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($"{nameof(Int3)}.{nameof(YX)}");
/// <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($"{nameof(Int3)}.{nameof(YY)}");
/// <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($"{nameof(Int3)}.{nameof(YZ)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="Y"/>, <see cref="W"/>.
/// </summary>
public ref Int2 YW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YW)}");
/// <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($"{nameof(Int3)}.{nameof(ZX)}");
/// <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($"{nameof(Int3)}.{nameof(ZY)}");
/// <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($"{nameof(Int3)}.{nameof(ZZ)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="Z"/>, <see cref="W"/>.
/// </summary>
public ref Int2 ZW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZW)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="W"/>, <see cref="X"/>.
/// </summary>
public ref Int2 WX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WX)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="W"/>, <see cref="Y"/>.
/// </summary>
public ref Int2 WY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WY)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="W"/>, <see cref="Z"/>.
/// </summary>
public ref Int2 WZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WZ)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="W"/>, <see cref="W"/>.
/// </summary>
public ref readonly Int2 WW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WW)}");
/// <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($"{nameof(Int3)}.{nameof(XXX)}");
/// <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($"{nameof(Int3)}.{nameof(XXY)}");
/// <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($"{nameof(Int3)}.{nameof(XXZ)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="X"/>, <see cref="W"/>.
/// </summary>
public ref readonly Int3 XXW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XXW)}");
/// <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($"{nameof(Int3)}.{nameof(XYX)}");
/// <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($"{nameof(Int3)}.{nameof(XYY)}");
/// <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($"{nameof(Int3)}.{nameof(XYZ)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="Y"/>, <see cref="W"/>.
/// </summary>
public ref Int3 XYW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYW)}");
/// <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($"{nameof(Int3)}.{nameof(XZX)}");
/// <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($"{nameof(Int3)}.{nameof(XZY)}");
/// <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($"{nameof(Int3)}.{nameof(XZZ)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="Z"/>, <see cref="W"/>.
/// </summary>
public ref Int3 XZW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZW)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="W"/>, <see cref="X"/>.
/// </summary>
public ref readonly Int3 XWX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XWX)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="W"/>, <see cref="Y"/>.
/// </summary>
public ref Int3 XWY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XWY)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="W"/>, <see cref="Z"/>.
/// </summary>
public ref Int3 XWZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XWZ)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="X"/>, <see cref="W"/>, <see cref="W"/>.
/// </summary>
public ref readonly Int3 XWW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XWW)}");
/// <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($"{nameof(Int3)}.{nameof(YXX)}");
/// <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($"{nameof(Int3)}.{nameof(YXY)}");
/// <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($"{nameof(Int3)}.{nameof(YXZ)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="X"/>, <see cref="W"/>.
/// </summary>
public ref Int3 YXW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXW)}");
/// <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($"{nameof(Int3)}.{nameof(YYX)}");
/// <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($"{nameof(Int3)}.{nameof(YYY)}");
/// <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($"{nameof(Int3)}.{nameof(YYZ)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="Y"/>, <see cref="W"/>.
/// </summary>
public ref readonly Int3 YYW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYW)}");
/// <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($"{nameof(Int3)}.{nameof(YZX)}");
/// <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($"{nameof(Int3)}.{nameof(YZY)}");
/// <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($"{nameof(Int3)}.{nameof(YZZ)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="Z"/>, <see cref="W"/>.
/// </summary>
public ref Int3 YZW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZW)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="W"/>, <see cref="X"/>.
/// </summary>
public ref Int3 YWX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YWX)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="W"/>, <see cref="Y"/>.
/// </summary>
public ref readonly Int3 YWY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YWY)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="W"/>, <see cref="Z"/>.
/// </summary>
public ref Int3 YWZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YWZ)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Y"/>, <see cref="W"/>, <see cref="W"/>.
/// </summary>
public ref readonly Int3 YWW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YWW)}");
/// <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($"{nameof(Int3)}.{nameof(ZXX)}");
/// <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($"{nameof(Int3)}.{nameof(ZXY)}");
/// <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($"{nameof(Int3)}.{nameof(ZXZ)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="X"/>, <see cref="W"/>.
/// </summary>
public ref Int3 ZXW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXW)}");
/// <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($"{nameof(Int3)}.{nameof(ZYX)}");
/// <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($"{nameof(Int3)}.{nameof(ZYY)}");
/// <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($"{nameof(Int3)}.{nameof(ZYZ)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="Y"/>, <see cref="W"/>.
/// </summary>
public ref Int3 ZYW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYW)}");
/// <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($"{nameof(Int3)}.{nameof(ZZX)}");
/// <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($"{nameof(Int3)}.{nameof(ZZY)}");
/// <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($"{nameof(Int3)}.{nameof(ZZZ)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="Z"/>, <see cref="W"/>.
/// </summary>
public ref readonly Int3 ZZW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZW)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="W"/>, <see cref="X"/>.
/// </summary>
public ref Int3 ZWX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZWX)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="W"/>, <see cref="Y"/>.
/// </summary>
public ref Int3 ZWY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZWY)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="W"/>, <see cref="Z"/>.
/// </summary>
public ref readonly Int3 ZWZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZWZ)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="Z"/>, <see cref="W"/>, <see cref="W"/>.
/// </summary>
public ref readonly Int3 ZWW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZWW)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="W"/>, <see cref="X"/>, <see cref="X"/>.
/// </summary>
public ref readonly Int3 WXX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WXX)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="W"/>, <see cref="X"/>, <see cref="Y"/>.
/// </summary>
public ref Int3 WXY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WXY)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="W"/>, <see cref="X"/>, <see cref="Z"/>.
/// </summary>
public ref Int3 WXZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WXZ)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="W"/>, <see cref="X"/>, <see cref="W"/>.
/// </summary>
public ref readonly Int3 WXW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WXW)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="W"/>, <see cref="Y"/>, <see cref="X"/>.
/// </summary>
public ref Int3 WYX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WYX)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="W"/>, <see cref="Y"/>, <see cref="Y"/>.
/// </summary>
public ref readonly Int3 WYY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WYY)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="W"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </summary>
public ref Int3 WYZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WYZ)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="W"/>, <see cref="Y"/>, <see cref="W"/>.
/// </summary>
public ref readonly Int3 WYW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WYW)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="W"/>, <see cref="Z"/>, <see cref="X"/>.
/// </summary>
public ref Int3 WZX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WZX)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="W"/>, <see cref="Z"/>, <see cref="Y"/>.
/// </summary>
public ref Int3 WZY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WZY)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="W"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </summary>
public ref readonly Int3 WZZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WZZ)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="W"/>, <see cref="Z"/>, <see cref="W"/>.
/// </summary>
public ref readonly Int3 WZW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WZW)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="W"/>, <see cref="W"/>, <see cref="X"/>.
/// </summary>
public ref readonly Int3 WWX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WWX)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="W"/>, <see cref="W"/>, <see cref="Y"/>.
/// </summary>
public ref readonly Int3 WWY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WWY)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="W"/>, <see cref="W"/>, <see cref="Z"/>.
/// </summary>
public ref readonly Int3 WWZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WWZ)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="W"/>, <see cref="W"/>, <see cref="W"/>.
/// </summary>
public ref readonly Int3 WWW => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(WWW)}");
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>R</c> component.
/// </summary>
public ref int R => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(R)}");
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>G</c> component.
/// </summary>
public ref int G => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(G)}");
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>B</c> component.
/// </summary>
public ref int B => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(B)}");
/// <summary>
/// Gets a reference to the <see cref="int"/> value representing the <c>A</c> component.
/// </summary>
public ref int A => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(A)}");
/// <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($"{nameof(Int3)}.{nameof(RR)}");
/// <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($"{nameof(Int3)}.{nameof(RG)}");
/// <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($"{nameof(Int3)}.{nameof(RB)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="R"/>, <see cref="A"/>.
/// </summary>
public ref Int2 RA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RA)}");
/// <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($"{nameof(Int3)}.{nameof(GR)}");
/// <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($"{nameof(Int3)}.{nameof(GG)}");
/// <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($"{nameof(Int3)}.{nameof(GB)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="G"/>, <see cref="A"/>.
/// </summary>
public ref Int2 GA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GA)}");
/// <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($"{nameof(Int3)}.{nameof(BR)}");
/// <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($"{nameof(Int3)}.{nameof(BG)}");
/// <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($"{nameof(Int3)}.{nameof(BB)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="B"/>, <see cref="A"/>.
/// </summary>
public ref Int2 BA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BA)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="A"/>, <see cref="R"/>.
/// </summary>
public ref Int2 AR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(AR)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="A"/>, <see cref="G"/>.
/// </summary>
public ref Int2 AG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(AG)}");
/// <summary>
/// Gets a reference to the <see cref="Int2"/> value with the components <see cref="A"/>, <see cref="B"/>.
/// </summary>
public ref Int2 AB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(AB)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int2"/> value with the components <see cref="A"/>, <see cref="A"/>.
/// </summary>
public ref readonly Int2 AA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(AA)}");
/// <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($"{nameof(Int3)}.{nameof(RRR)}");
/// <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($"{nameof(Int3)}.{nameof(RRG)}");
/// <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($"{nameof(Int3)}.{nameof(RRB)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="R"/>, <see cref="A"/>.
/// </summary>
public ref readonly Int3 RRA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RRA)}");
/// <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($"{nameof(Int3)}.{nameof(RGR)}");
/// <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($"{nameof(Int3)}.{nameof(RGG)}");
/// <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($"{nameof(Int3)}.{nameof(RGB)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="G"/>, <see cref="A"/>.
/// </summary>
public ref Int3 RGA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGA)}");
/// <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($"{nameof(Int3)}.{nameof(RBR)}");
/// <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($"{nameof(Int3)}.{nameof(RBG)}");
/// <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($"{nameof(Int3)}.{nameof(RBB)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="B"/>, <see cref="A"/>.
/// </summary>
public ref Int3 RBA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBA)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="A"/>, <see cref="R"/>.
/// </summary>
public ref readonly Int3 RAR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RAR)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="A"/>, <see cref="G"/>.
/// </summary>
public ref Int3 RAG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RAG)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="A"/>, <see cref="B"/>.
/// </summary>
public ref Int3 RAB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RAB)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="R"/>, <see cref="A"/>, <see cref="A"/>.
/// </summary>
public ref readonly Int3 RAA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RAA)}");
/// <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($"{nameof(Int3)}.{nameof(GRR)}");
/// <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($"{nameof(Int3)}.{nameof(GRG)}");
/// <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($"{nameof(Int3)}.{nameof(GRB)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="R"/>, <see cref="A"/>.
/// </summary>
public ref Int3 GRA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRA)}");
/// <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($"{nameof(Int3)}.{nameof(GGR)}");
/// <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($"{nameof(Int3)}.{nameof(GGG)}");
/// <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($"{nameof(Int3)}.{nameof(GGB)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="G"/>, <see cref="A"/>.
/// </summary>
public ref readonly Int3 GGA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGA)}");
/// <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($"{nameof(Int3)}.{nameof(GBR)}");
/// <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($"{nameof(Int3)}.{nameof(GBG)}");
/// <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($"{nameof(Int3)}.{nameof(GBB)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="B"/>, <see cref="A"/>.
/// </summary>
public ref Int3 GBA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBA)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="A"/>, <see cref="R"/>.
/// </summary>
public ref Int3 GAR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GAR)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="A"/>, <see cref="G"/>.
/// </summary>
public ref readonly Int3 GAG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GAG)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="A"/>, <see cref="B"/>.
/// </summary>
public ref Int3 GAB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GAB)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="G"/>, <see cref="A"/>, <see cref="A"/>.
/// </summary>
public ref readonly Int3 GAA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GAA)}");
/// <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($"{nameof(Int3)}.{nameof(BRR)}");
/// <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($"{nameof(Int3)}.{nameof(BRG)}");
/// <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($"{nameof(Int3)}.{nameof(BRB)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="R"/>, <see cref="A"/>.
/// </summary>
public ref Int3 BRA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRA)}");
/// <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($"{nameof(Int3)}.{nameof(BGR)}");
/// <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($"{nameof(Int3)}.{nameof(BGG)}");
/// <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($"{nameof(Int3)}.{nameof(BGB)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="G"/>, <see cref="A"/>.
/// </summary>
public ref Int3 BGA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGA)}");
/// <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($"{nameof(Int3)}.{nameof(BBR)}");
/// <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($"{nameof(Int3)}.{nameof(BBG)}");
/// <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($"{nameof(Int3)}.{nameof(BBB)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="B"/>, <see cref="A"/>.
/// </summary>
public ref readonly Int3 BBA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBA)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="A"/>, <see cref="R"/>.
/// </summary>
public ref Int3 BAR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BAR)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="A"/>, <see cref="G"/>.
/// </summary>
public ref Int3 BAG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BAG)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="A"/>, <see cref="B"/>.
/// </summary>
public ref readonly Int3 BAB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BAB)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="B"/>, <see cref="A"/>, <see cref="A"/>.
/// </summary>
public ref readonly Int3 BAA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BAA)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="A"/>, <see cref="R"/>, <see cref="R"/>.
/// </summary>
public ref readonly Int3 ARR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ARR)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="A"/>, <see cref="R"/>, <see cref="G"/>.
/// </summary>
public ref Int3 ARG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ARG)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="A"/>, <see cref="R"/>, <see cref="B"/>.
/// </summary>
public ref Int3 ARB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ARB)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="A"/>, <see cref="R"/>, <see cref="A"/>.
/// </summary>
public ref readonly Int3 ARA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ARA)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="A"/>, <see cref="G"/>, <see cref="R"/>.
/// </summary>
public ref Int3 AGR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(AGR)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="A"/>, <see cref="G"/>, <see cref="G"/>.
/// </summary>
public ref readonly Int3 AGG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(AGG)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="A"/>, <see cref="G"/>, <see cref="B"/>.
/// </summary>
public ref Int3 AGB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(AGB)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="A"/>, <see cref="G"/>, <see cref="A"/>.
/// </summary>
public ref readonly Int3 AGA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(AGA)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="A"/>, <see cref="B"/>, <see cref="R"/>.
/// </summary>
public ref Int3 ABR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ABR)}");
/// <summary>
/// Gets a reference to the <see cref="Int3"/> value with the components <see cref="A"/>, <see cref="B"/>, <see cref="G"/>.
/// </summary>
public ref Int3 ABG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ABG)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="A"/>, <see cref="B"/>, <see cref="B"/>.
/// </summary>
public ref readonly Int3 ABB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ABB)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="A"/>, <see cref="B"/>, <see cref="A"/>.
/// </summary>
public ref readonly Int3 ABA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ABA)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="A"/>, <see cref="A"/>, <see cref="R"/>.
/// </summary>
public ref readonly Int3 AAR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(AAR)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="A"/>, <see cref="A"/>, <see cref="G"/>.
/// </summary>
public ref readonly Int3 AAG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(AAG)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="A"/>, <see cref="A"/>, <see cref="B"/>.
/// </summary>
public ref readonly Int3 AAB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(AAB)}");
/// <summary>
/// Gets a readonly reference to the <see cref="Int3"/> value with the components <see cref="A"/>, <see cref="A"/>, <see cref="A"/>.
/// </summary>
public ref readonly Int3 AAA => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(AAA)}");
/// <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($"{nameof(Int3)}.-");
/// <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($"{nameof(Int3)}.+");
/// <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($"{nameof(Int3)}./");
/// <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($"{nameof(Int3)}.*");
/// <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($"{nameof(Int3)}.-");
}
}
-4
ファイルの表示
@@ -1,4 +0,0 @@
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Int3", sizeof(int));
#>
-148
ファイルの表示
@@ -1,148 +0,0 @@
using System.Diagnostics;
using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="int4"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z}, {W})")]
public partial struct Int4
{
/// <summary>
/// Gets an <see cref="Int4"/> value with all components set to 0.
/// </summary>
public static Int4 Zero => 0;
/// <summary>
/// Gets an <see cref="Int4"/> value with all components set to 1.
/// </summary>
public static Int4 One => 1;
/// <summary>
/// Gets an <see cref="Int4"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static Int4 UnitX => new(1, 0, 0, 0);
/// <summary>
/// Gets an <see cref="Int4"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static Int4 UnitY => new(0, 1, 0, 0);
/// <summary>
/// Gets an <see cref="Int4"/> value with the <see cref="Z"/> component set to 1, and the others to 0.
/// </summary>
public static Int4 UnitZ => new(0, 0, 1, 0);
/// <summary>
/// Gets an <see cref="Int4"/> value with the <see cref="W"/> component set to 1, and the others to 0.
/// </summary>
public static Int4 UnitW => new(0, 0, 0, 1);
/// <summary>
/// Creates a new <see cref="Int4"/> instance with the specified parameters.
/// </summary>
/// <param name="x">The value to assign to the first vector component.</param>
/// <param name="y">The value to assign to the second vector component.</param>
/// <param name="z">The value to assign to the third vector component.</param>
/// <param name="w">The value to assign to the fourth vector component.</param>
public Int4(int x, int y, int z, int w)
{
this.x = x;
this.y = y;
this.z = z;
this.w = w;
}
/// <summary>
/// Creates a new <see cref="Int4"/> instance with the specified parameters.
/// </summary>
/// <param name="xy">The value to assign to the first and second vector components.</param>
/// <param name="z">The value to assign to the third vector component.</param>
/// <param name="w">The value to assign to the fourth vector component.</param>
public Int4(Int2 xy, int z, int w)
{
this.x = xy.X;
this.y = xy.Y;
this.z = z;
this.w = w;
}
/// <summary>
/// Creates a new <see cref="Int4"/> instance with the specified parameters.
/// </summary>
/// <param name="x">The value to assign to the first vector component.</param>
/// <param name="y">The value to assign to the second vector component.</param>
/// <param name="zw">The value to assign to the third and fourth vector components.</param>
public Int4(int x, int y, Int2 zw)
{
this.x = x;
this.y = y;
this.z = zw.X;
this.w = zw.Y;
}
/// <summary>
/// Creates a new <see cref="Int4"/> instance with the specified parameters.
/// </summary>
/// <param name="xy">The value to assign to the first and second vector components.</param>
/// <param name="zw">The value to assign to the third and fourth vector components.</param>
public Int4(Int2 xy, Int2 zw)
{
this.x = xy.X;
this.y = xy.Y;
this.z = zw.X;
this.w = zw.Y;
}
/// <summary>
/// Creates a new <see cref="Int4"/> instance with the specified parameters.
/// </summary>
/// <param name="xyz">The value to assign to the first, second and third vector components.</param>
/// <param name="w">The value to assign to the fourth vector component.</param>
public Int4(Int3 xyz, int w)
{
this.x = xyz.X;
this.y = xyz.Y;
this.z = xyz.Z;
this.w = w;
}
/// <summary>
/// Creates a new <see cref="Int4"/> instance with the specified parameters.
/// </summary>
/// <param name="x">The value to assign to the first vector component.</param>
/// <param name="yzw">The value to assign to the second, third and fourth vector components.</param>
public Int4(int x, Int3 yzw)
{
this.x = x;
this.y = yzw.X;
this.z = yzw.Y;
this.w = yzw.Z;
}
/// <summary>
/// Creates a new <see cref="Int4"/> value with the same value for all its components.
/// </summary>
/// <param name="x">The value to use for the components of the new <see cref="Int4"/> instance.</param>
public static implicit operator Int4(int x) => new(x, x, x, x);
/// <summary>
/// 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)})");
/// <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)})");
/// <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)})");
}
}
ファイル差分が大きすぎるため表示されません。 差分を読み込み
-4
ファイルの表示
@@ -1,4 +0,0 @@
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Int4", sizeof(int));
#>