Switched swizzling properties to T4 templates

このコミットが含まれているのは:
Sergio Pedri committed 2021-02-24 17:20:54 +01:00
1 親 f9f7b4c626
コミット e49d42abb1
47ファイル変更
+26615 -21775

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

+1 -57
ファイルの表示
@@ -9,7 +9,7 @@ namespace ComputeSharp
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(int) * 2)]
public struct Int2
public partial struct Int2
{
/// <summary>
/// Gets an <see cref="Int2"/> value with all components set to 0.
@@ -80,62 +80,6 @@ namespace ComputeSharp
set => throw new InvalidExecutionContextException($"{nameof(Int2)}[int]");
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Int2 XX => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Int2 XY
{
get => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(XY)}");
set => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(XY)}");
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Int2 YX
{
get => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(YX)}");
set => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(YX)}");
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Int2 YY => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(YY)}");
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Int2 RR => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Int2 RG
{
get => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(RG)}");
set => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(RG)}");
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Int2 GR
{
get => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(GR)}");
set => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(GR)}");
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Int2 GG => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(GG)}");
/// <summary>
/// Creates a new <see cref="Int2"/> value with the same value for all its components.
/// </summary>
+76
ファイルの表示
@@ -0,0 +1,76 @@
using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <inheritdoc cref="Int2"/>
public partial struct Int2
{
/// <summary>
/// Gets a <see cref="Int2"/> value with the values <see cref="X"/>, <see cref="X"/>.
/// </summary>
public Int2 XX
{
get => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(XX)}");
}
/// <summary>
/// Gets or sets a <see cref="Int2"/> value with the values <see cref="X"/>, <see cref="Y"/>.
/// </summary>
public Int2 XY
{
get => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(XY)}");
set => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(XY)}");
}
/// <summary>
/// Gets or sets a <see cref="Int2"/> value with the values <see cref="Y"/>, <see cref="X"/>.
/// </summary>
public Int2 YX
{
get => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(YX)}");
set => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(YX)}");
}
/// <summary>
/// Gets a <see cref="Int2"/> value with the values <see cref="Y"/>, <see cref="Y"/>.
/// </summary>
public Int2 YY
{
get => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(YY)}");
}
/// <summary>
/// Gets a <see cref="Int2"/> value with the values <see cref="R"/>, <see cref="R"/>.
/// </summary>
public Int2 RR
{
get => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(RR)}");
}
/// <summary>
/// Gets or sets a <see cref="Int2"/> value with the values <see cref="R"/>, <see cref="G"/>.
/// </summary>
public Int2 RG
{
get => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(RG)}");
set => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(RG)}");
}
/// <summary>
/// Gets or sets a <see cref="Int2"/> value with the values <see cref="G"/>, <see cref="R"/>.
/// </summary>
public Int2 GR
{
get => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(GR)}");
set => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(GR)}");
}
/// <summary>
/// Gets a <see cref="Int2"/> value with the values <see cref="G"/>, <see cref="G"/>.
/// </summary>
public Int2 GG
{
get => throw new InvalidExecutionContextException($"{nameof(Int2)}.{nameof(GG)}");
}
}
}
+4
ファイルの表示
@@ -0,0 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Int2");
#>
+1 -457
ファイルの表示
@@ -9,7 +9,7 @@ namespace ComputeSharp
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(int) * 3)]
public struct Int3
public partial struct Int3
{
/// <summary>
/// Gets an <see cref="Int3"/> value with all components set to 0.
@@ -101,462 +101,6 @@ namespace ComputeSharp
set => throw new InvalidExecutionContextException($"{nameof(Int3)}[int]");
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Int2 XX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Int2 XY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XY)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XY)}");
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Int2 XZ
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZ)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZ)}");
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Int2 YX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YX)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YX)}");
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Int2 YY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YY)}");
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Int2 YZ
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZ)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZ)}");
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Int2 ZX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZX)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZX)}");
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Int2 ZY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZY)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZY)}");
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Int2 ZZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZ)}");
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Int2 RR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Int2 RG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RG)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RG)}");
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Int2 RB
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RB)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RB)}");
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Int2 GR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GR)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GR)}");
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Int2 GG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GG)}");
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Int2 GB
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GB)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GB)}");
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Int2 BR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BR)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BR)}");
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Int2 BG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BG)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BG)}");
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Int2 BB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BB)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Int3 XXX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XXX)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Int3 XXY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XXY)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Int3 XXZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XXZ)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Int3 XYX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYX)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Int3 XYY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYY)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Int3 XYZ
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYZ)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYZ)}");
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Int3 XZX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZX)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Int3 XZY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZY)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZY)}");
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Int3 XZZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZZ)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values.
/// </summary>
public Int3 YXX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXX)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Int3 YXY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXY)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Int3 YXZ
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXZ)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXZ)}");
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Int3 YYX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYX)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Int3 YYY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYY)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Int3 YYZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYZ)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Int3 YZX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZX)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZX)}");
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Int3 YZY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZY)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Int3 YZZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZZ)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Int3 ZXX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXX)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Int3 ZXY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXY)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXY)}");
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Int3 ZXZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXZ)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Int3 ZYX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYX)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYX)}");
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Int3 ZYY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYY)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Int3 ZYZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYZ)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Int3 ZZX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZX)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Int3 ZZY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZY)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Int3 ZZZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZZ)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Int3 RRR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RRR)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Int3 RRG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RRG)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Int3 RRB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RRB)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Int3 RGR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGR)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Int3 RGG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGG)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Int3 RGB
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGB)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGB)}");
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Int3 RBR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBR)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Int3 RBG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBG)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBG)}");
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Int3 RBB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBB)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values.
/// </summary>
public Int3 GRR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRR)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Int3 GRG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRG)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Int3 GRB
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRB)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRB)}");
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Int3 GGR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGR)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Int3 GGG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGG)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Int3 GGB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGB)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Int3 GBR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBR)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBR)}");
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Int3 GBG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBG)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Int3 GBB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBB)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Int3 BRR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRR)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Int3 BRG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRG)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRG)}");
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Int3 BRB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRB)}");
/// <summary>
/// Gets or sets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Int3 BGR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGR)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGR)}");
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Int3 BGG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGG)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Int3 BGB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGB)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Int3 BBR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBR)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Int3 BBG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBG)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Int3 BBB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBB)}");
/// <summary>
/// Creates a new <see cref="Int3"/> value with the same value for all its components.
/// </summary>
+520
ファイルの表示
@@ -0,0 +1,520 @@
using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <inheritdoc cref="Int3"/>
public partial struct Int3
{
/// <summary>
/// Gets a <see cref="Int2"/> value with the values <see cref="X"/>, <see cref="X"/>.
/// </summary>
public Int2 XX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XX)}");
}
/// <summary>
/// Gets or sets a <see cref="Int2"/> value with the values <see cref="X"/>, <see cref="Y"/>.
/// </summary>
public Int2 XY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XY)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XY)}");
}
/// <summary>
/// Gets or sets a <see cref="Int2"/> value with the values <see cref="Y"/>, <see cref="X"/>.
/// </summary>
public Int2 YX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YX)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YX)}");
}
/// <summary>
/// Gets a <see cref="Int2"/> value with the values <see cref="Y"/>, <see cref="Y"/>.
/// </summary>
public Int2 YY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YY)}");
}
/// <summary>
/// Gets a <see cref="Int2"/> value with the values <see cref="R"/>, <see cref="R"/>.
/// </summary>
public Int2 RR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RR)}");
}
/// <summary>
/// Gets or sets a <see cref="Int2"/> value with the values <see cref="R"/>, <see cref="G"/>.
/// </summary>
public Int2 RG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RG)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RG)}");
}
/// <summary>
/// Gets or sets a <see cref="Int2"/> value with the values <see cref="G"/>, <see cref="R"/>.
/// </summary>
public Int2 GR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GR)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GR)}");
}
/// <summary>
/// Gets a <see cref="Int2"/> value with the values <see cref="G"/>, <see cref="G"/>.
/// </summary>
public Int2 GG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GG)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="X"/>, <see cref="X"/>, <see cref="X"/>.
/// </summary>
public Int3 XXX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XXX)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="X"/>, <see cref="X"/>, <see cref="Y"/>.
/// </summary>
public Int3 XXY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XXY)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="X"/>, <see cref="X"/>, <see cref="Z"/>.
/// </summary>
public Int3 XXZ
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XXZ)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="X"/>, <see cref="Y"/>, <see cref="X"/>.
/// </summary>
public Int3 XYX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYX)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="X"/>, <see cref="Y"/>, <see cref="Y"/>.
/// </summary>
public Int3 XYY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYY)}");
}
/// <summary>
/// Gets or sets a <see cref="Int3"/> value with the values <see cref="X"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </summary>
public Int3 XYZ
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYZ)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XYZ)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="X"/>, <see cref="Z"/>, <see cref="X"/>.
/// </summary>
public Int3 XZX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZX)}");
}
/// <summary>
/// Gets or sets a <see cref="Int3"/> value with the values <see cref="X"/>, <see cref="Z"/>, <see cref="Y"/>.
/// </summary>
public Int3 XZY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZY)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZY)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="X"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </summary>
public Int3 XZZ
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(XZZ)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="Y"/>, <see cref="X"/>, <see cref="X"/>.
/// </summary>
public Int3 YXX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXX)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="Y"/>, <see cref="X"/>, <see cref="Y"/>.
/// </summary>
public Int3 YXY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXY)}");
}
/// <summary>
/// Gets or sets a <see cref="Int3"/> value with the values <see cref="Y"/>, <see cref="X"/>, <see cref="Z"/>.
/// </summary>
public Int3 YXZ
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXZ)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YXZ)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="Y"/>, <see cref="Y"/>, <see cref="X"/>.
/// </summary>
public Int3 YYX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYX)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="Y"/>, <see cref="Y"/>, <see cref="Y"/>.
/// </summary>
public Int3 YYY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYY)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="Y"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </summary>
public Int3 YYZ
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYZ)}");
}
/// <summary>
/// Gets or sets a <see cref="Int3"/> value with the values <see cref="Y"/>, <see cref="Z"/>, <see cref="X"/>.
/// </summary>
public Int3 YZX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZX)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZX)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="Y"/>, <see cref="Z"/>, <see cref="Y"/>.
/// </summary>
public Int3 YZY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZY)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="Y"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </summary>
public Int3 YZZ
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YZZ)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="Z"/>, <see cref="X"/>, <see cref="X"/>.
/// </summary>
public Int3 ZXX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXX)}");
}
/// <summary>
/// Gets or sets a <see cref="Int3"/> value with the values <see cref="Z"/>, <see cref="X"/>, <see cref="Y"/>.
/// </summary>
public Int3 ZXY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXY)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXY)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="Z"/>, <see cref="X"/>, <see cref="Z"/>.
/// </summary>
public Int3 ZXZ
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZXZ)}");
}
/// <summary>
/// Gets or sets a <see cref="Int3"/> value with the values <see cref="Z"/>, <see cref="Y"/>, <see cref="X"/>.
/// </summary>
public Int3 ZYX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYX)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYX)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="Z"/>, <see cref="Y"/>, <see cref="Y"/>.
/// </summary>
public Int3 ZYY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYY)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="Z"/>, <see cref="Y"/>, <see cref="Z"/>.
/// </summary>
public Int3 ZYZ
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZYZ)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="Z"/>, <see cref="Z"/>, <see cref="X"/>.
/// </summary>
public Int3 ZZX
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZX)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="Z"/>, <see cref="Z"/>, <see cref="Y"/>.
/// </summary>
public Int3 ZZY
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZY)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="Z"/>, <see cref="Z"/>, <see cref="Z"/>.
/// </summary>
public Int3 ZZZ
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZZ)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="R"/>, <see cref="R"/>, <see cref="R"/>.
/// </summary>
public Int3 RRR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RRR)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="R"/>, <see cref="R"/>, <see cref="G"/>.
/// </summary>
public Int3 RRG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RRG)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="R"/>, <see cref="R"/>, <see cref="B"/>.
/// </summary>
public Int3 RRB
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RRB)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="R"/>, <see cref="G"/>, <see cref="R"/>.
/// </summary>
public Int3 RGR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGR)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="R"/>, <see cref="G"/>, <see cref="G"/>.
/// </summary>
public Int3 RGG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGG)}");
}
/// <summary>
/// Gets or sets a <see cref="Int3"/> value with the values <see cref="R"/>, <see cref="G"/>, <see cref="B"/>.
/// </summary>
public Int3 RGB
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGB)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RGB)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="R"/>, <see cref="B"/>, <see cref="R"/>.
/// </summary>
public Int3 RBR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBR)}");
}
/// <summary>
/// Gets or sets a <see cref="Int3"/> value with the values <see cref="R"/>, <see cref="B"/>, <see cref="G"/>.
/// </summary>
public Int3 RBG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBG)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBG)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="R"/>, <see cref="B"/>, <see cref="B"/>.
/// </summary>
public Int3 RBB
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(RBB)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="G"/>, <see cref="R"/>, <see cref="R"/>.
/// </summary>
public Int3 GRR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRR)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="G"/>, <see cref="R"/>, <see cref="G"/>.
/// </summary>
public Int3 GRG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRG)}");
}
/// <summary>
/// Gets or sets a <see cref="Int3"/> value with the values <see cref="G"/>, <see cref="R"/>, <see cref="B"/>.
/// </summary>
public Int3 GRB
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRB)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GRB)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="G"/>, <see cref="G"/>, <see cref="R"/>.
/// </summary>
public Int3 GGR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGR)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="G"/>, <see cref="G"/>, <see cref="G"/>.
/// </summary>
public Int3 GGG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGG)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="G"/>, <see cref="G"/>, <see cref="B"/>.
/// </summary>
public Int3 GGB
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGB)}");
}
/// <summary>
/// Gets or sets a <see cref="Int3"/> value with the values <see cref="G"/>, <see cref="B"/>, <see cref="R"/>.
/// </summary>
public Int3 GBR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBR)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBR)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="G"/>, <see cref="B"/>, <see cref="G"/>.
/// </summary>
public Int3 GBG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBG)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="G"/>, <see cref="B"/>, <see cref="B"/>.
/// </summary>
public Int3 GBB
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GBB)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="B"/>, <see cref="R"/>, <see cref="R"/>.
/// </summary>
public Int3 BRR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRR)}");
}
/// <summary>
/// Gets or sets a <see cref="Int3"/> value with the values <see cref="B"/>, <see cref="R"/>, <see cref="G"/>.
/// </summary>
public Int3 BRG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRG)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRG)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="B"/>, <see cref="R"/>, <see cref="B"/>.
/// </summary>
public Int3 BRB
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BRB)}");
}
/// <summary>
/// Gets or sets a <see cref="Int3"/> value with the values <see cref="B"/>, <see cref="G"/>, <see cref="R"/>.
/// </summary>
public Int3 BGR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGR)}");
set => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGR)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="B"/>, <see cref="G"/>, <see cref="G"/>.
/// </summary>
public Int3 BGG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGG)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="B"/>, <see cref="G"/>, <see cref="B"/>.
/// </summary>
public Int3 BGB
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BGB)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="B"/>, <see cref="B"/>, <see cref="R"/>.
/// </summary>
public Int3 BBR
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBR)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="B"/>, <see cref="B"/>, <see cref="G"/>.
/// </summary>
public Int3 BBG
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBG)}");
}
/// <summary>
/// Gets a <see cref="Int3"/> value with the values <see cref="B"/>, <see cref="B"/>, <see cref="B"/>.
/// </summary>
public Int3 BBB
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBB)}");
}
}
}
+4
ファイルの表示
@@ -0,0 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Int3");
#>
ファイル差分が大きすぎるため表示されません。 差分を読み込み
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+4
ファイルの表示
@@ -0,0 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Int4");
#>