Added missing dots

このコミットが含まれているのは:
Sergio Pedri committed 2020-12-01 19:12:03 +01:00
1 親 e45b712000
コミット 33870886b6
51ファイル変更
+5686 -5686

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

+2 -2
ファイルの表示
@@ -8,9 +8,9 @@ namespace ComputeSharp.Exceptions
public sealed class InvalidExecutionContextException : InvalidOperationException
{
/// <summary>
/// Creates a new <see cref="InvalidExecutionContextException"/> instance
/// Creates a new <see cref="InvalidExecutionContextException"/> instance.
/// </summary>
/// <param name="name">The name of the caller API</param>
/// <param name="name">The name of the caller API.</param>
internal InvalidExecutionContextException(string name)
: base($"The API {name} can only be used from within an HLSL shader.")
{
+1 -1
ファイルの表示
@@ -3,7 +3,7 @@
namespace ComputeSharp.Core.Intrinsics.Attributes
{
/// <summary>
/// An attribute to indicate that a given member has the same name when mapped to HLSL
/// An attribute to indicate that a given member has the same name when mapped to HLSL.
/// </summary>
internal sealed class PreserveMemberNameAttribute : Attribute
{
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+16 -16
ファイルの表示
@@ -4,22 +4,22 @@ using System.Runtime.InteropServices;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that can be used in place of the <see cref="bool"/> type in HLSL shaders
/// A <see langword="struct"/> that can be used in place of the <see cref="bool"/> type in HLSL shaders.
/// </summary>
[DebuggerDisplay("{Value}")]
[StructLayout(LayoutKind.Explicit, Size = sizeof(int))]
public readonly struct Bool
{
/// <summary>
/// The wrapped <see cref="bool"/> value for the current instance
/// The wrapped <see cref="bool"/> value for the current instance.
/// </summary>
[FieldOffset(0)]
private readonly bool Value;
/// <summary>
/// Creates a new <see cref="Bool"/> instance for a given <see cref="bool"/> value
/// Creates a new <see cref="Bool"/> instance for a given <see cref="bool"/> value.
/// </summary>
/// <param name="value"></param>
/// <param name="value">.</param>
private Bool(bool value) => Value = value;
/// <inheritdoc/>
@@ -32,35 +32,35 @@ namespace ComputeSharp
public override string ToString() => Value.ToString();
/// <summary>
/// Checks whether or not two <see cref="Bool"/> instances represent the same <see cref="bool"/> value
/// Checks whether or not two <see cref="Bool"/> instances represent the same <see cref="bool"/> value.
/// </summary>
/// <param name="left">The left <see cref="Bool"/> instance</param>
/// <param name="right">The right <see cref="Bool"/> instance</param>
/// <param name="left">The left <see cref="Bool"/> instance.</param>
/// <param name="right">The right <see cref="Bool"/> instance.</param>
public static bool operator ==(Bool left, Bool right) => left.Value == right.Value;
/// <summary>
/// Checks whether or not two <see cref="Bool"/> instances represent a different <see cref="bool"/> value
/// Checks whether or not two <see cref="Bool"/> instances represent a different <see cref="bool"/> value.
/// </summary>
/// <param name="left">The left <see cref="Bool"/> instance</param>
/// <param name="right">The right <see cref="Bool"/> instance</param>
/// <param name="left">The left <see cref="Bool"/> instance.</param>
/// <param name="right">The right <see cref="Bool"/> instance.</param>
public static bool operator !=(Bool left, Bool right) => left.Value != right.Value;
/// <summary>
/// Inverts the <see cref="bool"/> value represented by a given <see cref="Bool"/> instance
/// Inverts the <see cref="bool"/> value represented by a given <see cref="Bool"/> instance.
/// </summary>
/// <param name="x">The input <see cref="Bool"/> instance</param>
/// <param name="x">The input <see cref="Bool"/> instance.</param>
public static Bool operator !(Bool x) => new Bool(!x.Value);
/// <summary>
/// Converts a given <see cref="Bool"/> instance to its corresponding <see cref="bool"/> value
/// Converts a given <see cref="Bool"/> instance to its corresponding <see cref="bool"/> value.
/// </summary>
/// <param name="x">The input <see cref="Bool"/> instance</param>
/// <param name="x">The input <see cref="Bool"/> instance.</param>
public static implicit operator bool(Bool x) => x.Value;
/// <summary>
/// Converts a <see cref="bool"/> value to a corresponding <see cref="Bool"/> instance
/// Converts a <see cref="bool"/> value to a corresponding <see cref="Bool"/> instance.
/// </summary>
/// <param name="x">The input <see cref="bool"/> value</param>
/// <param name="x">The input <see cref="bool"/> value.</param>
public static implicit operator Bool(bool x) => new Bool(x);
}
}
+24 -24
ファイルの表示
@@ -5,37 +5,37 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="bool2"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="bool2"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
[StructLayout(LayoutKind.Explicit, Size = sizeof(int) * 2)]
public struct Bool2
{
/// <summary>
/// Gets an <see cref="Bool2"/> value with all components set to <see langword="false"/>
/// Gets an <see cref="Bool2"/> value with all components set to <see langword="false"/>.
/// </summary>
public static Bool2 False => false;
/// <summary>
/// Gets an <see cref="Bool2"/> value with all components set to <see langword="true"/>
/// Gets an <see cref="Bool2"/> value with all components set to <see langword="true"/>.
/// </summary>
public static Bool2 True => true;
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="X"/> component set to <see langword="true"/>, and the others to <see langword="false"/>
/// Gets an <see cref="Bool2"/> value with the <see cref="X"/> component set to <see langword="true"/>, and the others to <see langword="false"/>.
/// </summary>
public static Bool2 TrueX => new Bool2(true, false);
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> component set to <see langword="true"/>, and the others to <see langword="false"/>
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> component set to <see langword="true"/>, and the others to <see langword="false"/>.
/// </summary>
public static Bool2 TrueY => new Bool2(false, true);
/// <summary>
/// Creates a new <see cref="Bool2"/> instance with the specified parameters
/// Creates a new <see cref="Bool2"/> 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="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 Bool2(bool x, bool y)
{
_X = x;
@@ -46,7 +46,7 @@ namespace ComputeSharp
private bool _X;
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public bool X
{
@@ -58,7 +58,7 @@ namespace ComputeSharp
private bool _Y;
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public bool Y
{
@@ -67,7 +67,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public bool R
{
@@ -76,7 +76,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public bool G
{
@@ -85,9 +85,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="Bool2"/> instance
/// Gets or sets a specific component in the current <see cref="Bool2"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public bool this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(Bool2)}[int]");
@@ -95,12 +95,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Bool2 XX => throw new InvalidExecutionContextException($"{nameof(Bool2)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 XY
{
@@ -109,7 +109,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Bool2 YX
{
@@ -118,17 +118,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Bool2 YY => throw new InvalidExecutionContextException($"{nameof(Bool2)}.{nameof(YY)}");
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Bool2 RR => throw new InvalidExecutionContextException($"{nameof(Bool2)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Bool2 RG
{
@@ -137,7 +137,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Bool2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Bool2 GR
{
@@ -146,14 +146,14 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Bool2 GG => throw new InvalidExecutionContextException($"{nameof(Bool2)}.{nameof(GG)}");
/// <summary>
/// Creates a new <see cref="Bool2"/> value with the same value for all its components
/// Creates a new <see cref="Bool2"/> 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="Bool2"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="Bool2"/> instance.</param>
public static implicit operator Bool2(bool x) => new Bool2(x, x);
}
}
+92 -92
ファイルの表示
@@ -5,43 +5,43 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="bool3"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="bool3"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
[StructLayout(LayoutKind.Explicit, Size = sizeof(int) * 3)]
public struct Bool3
{
/// <summary>
/// Gets an <see cref="Bool3"/> value with all components set to <see langword="false"/>
/// Gets an <see cref="Bool3"/> value with all components set to <see langword="false"/>.
/// </summary>
public static Bool3 False => false;
/// <summary>
/// Gets an <see cref="Bool3"/> value with all components set to <see langword="true"/>
/// Gets an <see cref="Bool3"/> value with all components set to <see langword="true"/>.
/// </summary>
public static Bool3 True => true;
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/> component set to <see langword="true"/>, and the others to <see langword="false"/>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/> component set to <see langword="true"/>, and the others to <see langword="false"/>.
/// </summary>
public static Bool3 TrueX => new Bool3(true, false, false);
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/> component set to <see langword="true"/>, and the others to <see langword="false"/>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/> component set to <see langword="true"/>, and the others to <see langword="false"/>.
/// </summary>
public static Bool3 TrueY => new Bool3(false, true, false);
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/> component set to <see langword="true"/>, and the others to <see langword="false"/>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/> component set to <see langword="true"/>, and the others to <see langword="false"/>.
/// </summary>
public static Bool3 TrueZ => new Bool3(false, false, true);
/// <summary>
/// Creates a new <see cref="Bool3"/> instance with the specified parameters
/// Creates a new <see cref="Bool3"/> 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="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 Bool3(bool x, bool y, bool z)
{
_X = x;
@@ -53,7 +53,7 @@ namespace ComputeSharp
private bool _X;
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public bool X
{
@@ -65,7 +65,7 @@ namespace ComputeSharp
private bool _Y;
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public bool Y
{
@@ -77,7 +77,7 @@ namespace ComputeSharp
private bool _Z;
/// <summary>
/// Gets or sets the value of the third vector component
/// Gets or sets the value of the third vector component.
/// </summary>
public bool Z
{
@@ -86,7 +86,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public bool R
{
@@ -95,7 +95,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public bool G
{
@@ -104,7 +104,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the third color component
/// Gets or sets the value of the third color component.
/// </summary>
public bool B
{
@@ -113,9 +113,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="Bool3"/> instance
/// Gets or sets a specific component in the current <see cref="Bool3"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public bool this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(Bool3)}[int]");
@@ -123,12 +123,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Bool2 XX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 XY
{
@@ -137,7 +137,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 XZ
{
@@ -146,7 +146,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Bool2 YX
{
@@ -155,12 +155,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Bool2 YY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YY)}");
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 YZ
{
@@ -169,7 +169,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Bool2 ZX
{
@@ -178,7 +178,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 ZY
{
@@ -187,17 +187,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Bool2 ZZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZZ)}");
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Bool2 RR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Bool2 RG
{
@@ -206,7 +206,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Bool2 RB
{
@@ -215,7 +215,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Bool2 GR
{
@@ -224,12 +224,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Bool2 GG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GG)}");
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Bool2 GB
{
@@ -238,7 +238,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Bool2 BR
{
@@ -247,7 +247,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Bool2"/> value with the <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Bool2 BG
{
@@ -256,37 +256,37 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool2"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="Bool2"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Bool2 BB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BB)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Bool2 XXX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XXX)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 XXY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XXY)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 XXZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XXZ)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Bool2 XYX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XYX)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 XYY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XYY)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 XYZ
{
@@ -295,12 +295,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Bool2 XZX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XZX)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 XZY
{
@@ -309,22 +309,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 XZZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(XZZ)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values.
/// </summary>
public Bool2 YXX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YXX)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 YXY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YXY)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 YXZ
{
@@ -333,22 +333,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Bool2 YYX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YYX)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Bool2 YYY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YYY)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 YYZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YYZ)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Bool2 YZX
{
@@ -357,22 +357,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 YZY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YZY)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 YZZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(YZZ)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 ZXX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZXX)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 ZXY
{
@@ -381,12 +381,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 ZXZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZXZ)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Bool2 ZYX
{
@@ -395,57 +395,57 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 ZYY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZYY)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Bool2 ZYZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZYZ)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Bool2 ZZX => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZZX)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Bool2 ZZY => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZZY)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="Bool3"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Bool2 ZZZ => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(ZZZ)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Bool2 RRR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RRR)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Bool2 RRG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RRG)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Bool2 RRB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RRB)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Bool2 RGR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RGR)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Bool2 RGG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RGG)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Bool2 RGB
{
@@ -454,12 +454,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Bool2 RBR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RBR)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Bool2 RBG
{
@@ -468,22 +468,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Bool2 RBB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(RBB)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values.
/// </summary>
public Bool2 GRR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GRR)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Bool2 GRG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GRG)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Bool2 GRB
{
@@ -492,22 +492,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Bool2 GGR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GGR)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Bool2 GGG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GGG)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Bool2 GGB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GGB)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Bool2 GBR
{
@@ -516,22 +516,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Bool2 GBG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GBG)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Bool2 GBB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(GBB)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Bool2 BRR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BRR)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Bool2 BRG
{
@@ -540,12 +540,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Bool2 BRB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BRB)}");
/// <summary>
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Bool2 BGR
{
@@ -554,34 +554,34 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Bool2 BGG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BGG)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Bool2 BGB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BGB)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Bool2 BBR => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BBR)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Bool2 BBG => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BBG)}");
/// <summary>
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="Bool3"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Bool2 BBB => throw new InvalidExecutionContextException($"{nameof(Bool3)}.{nameof(BBB)}");
/// <summary>
/// Creates a new <see cref="Bool3"/> value with the same value for all its components
/// Creates a new <see cref="Bool3"/> 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="Bool3"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="Bool3"/> instance.</param>
public static implicit operator Bool3(bool x) => new Bool3(x, x, x);
}
}
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+36 -36
ファイルの表示
@@ -5,37 +5,37 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="double2"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="double2"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(double) * 2)]
public struct Double2
{
/// <summary>
/// Gets an <see cref="Double2"/> value with all components set to 0
/// Gets an <see cref="Double2"/> value with all components set to 0.
/// </summary>
public static Double2 Zero => 0;
/// <summary>
/// Gets an <see cref="Double2"/> value with all components set to 1
/// Gets an <see cref="Double2"/> value with all components set to 1.
/// </summary>
public static Double2 One => 1;
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// Gets an <see cref="Double2"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static Double2 UnitX => new Double2(1, 0);
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static Double2 UnitY => new Double2(0, 1);
/// <summary>
/// Creates a new <see cref="Double2"/> instance with the specified parameters
/// Creates a new <see cref="Double2"/> 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="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 Double2(double x, double y)
{
X = x;
@@ -43,17 +43,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public double X { get; set; }
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public double Y { get; set; }
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public double R
{
@@ -62,7 +62,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public double G
{
@@ -71,9 +71,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="Double2"/> instance
/// Gets or sets a specific component in the current <see cref="Double2"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public double this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(Double2)}[int]");
@@ -81,12 +81,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Double2 XX => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Double2 XY
{
@@ -95,7 +95,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Double2 YX
{
@@ -104,17 +104,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Double2 YY => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(YY)}");
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Double2 RR => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Double2 RG
{
@@ -123,7 +123,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Double2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Double2 GR
{
@@ -132,42 +132,42 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Double2 GG => throw new InvalidExecutionContextException($"{nameof(Double2)}.{nameof(GG)}");
/// <summary>
/// Creates a new <see cref="Double2"/> value with the same value for all its components
/// Creates a new <see cref="Double2"/> 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="Double2"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="Double2"/> instance.</param>
public static implicit operator Double2(double x) => new Double2(x, x);
/// <summary>
/// Sums two <see cref="Double2"/> values
/// Sums two <see cref="Double2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Double2"/> value to sum</param>
/// <param name="right">The second <see cref="Double2"/> value to sum</param>
/// <param name="left">The first <see cref="Double2"/> value to sum.</param>
/// <param name="right">The second <see cref="Double2"/> value to sum.</param>
public static Double2 operator +(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{nameof(Double2)}.+");
/// <summary>
/// Divides two <see cref="Double2"/> values
/// Divides two <see cref="Double2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Double2"/> value to divide</param>
/// <param name="right">The second <see cref="Double2"/> value to divide</param>
/// <param name="left">The first <see cref="Double2"/> value to divide.</param>
/// <param name="right">The second <see cref="Double2"/> value to divide.</param>
public static Double2 operator /(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{nameof(Double2)}./");
/// <summary>
/// Multiplies two <see cref="Double2"/> values
/// Multiplies two <see cref="Double2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Double2"/> value to multiply</param>
/// <param name="right">The second <see cref="Double2"/> value to multiply</param>
/// <param name="left">The first <see cref="Double2"/> value to multiply.</param>
/// <param name="right">The second <see cref="Double2"/> value to multiply.</param>
public static Double2 operator *(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{nameof(Double2)}.*");
/// <summary>
/// Subtracts two <see cref="Double2"/> values
/// Subtracts two <see cref="Double2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Double2"/> value to subtract</param>
/// <param name="right">The second <see cref="Double2"/> value to subtract</param>
/// <param name="left">The first <see cref="Double2"/> value to subtract.</param>
/// <param name="right">The second <see cref="Double2"/> value to subtract.</param>
public static Double2 operator -(Double2 left, Double2 right) => throw new InvalidExecutionContextException($"{nameof(Double2)}.-");
}
}
+104 -104
ファイルの表示
@@ -5,43 +5,43 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="double3"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="double3"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(double) * 3)]
public struct Double3
{
/// <summary>
/// Gets an <see cref="Double3"/> value with all components set to 0
/// Gets an <see cref="Double3"/> value with all components set to 0.
/// </summary>
public static Double3 Zero => 0;
/// <summary>
/// Gets an <see cref="Double3"/> value with all components set to 1
/// Gets an <see cref="Double3"/> value with all components set to 1.
/// </summary>
public static Double3 One => 1;
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// Gets an <see cref="Double3"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static Double3 UnitX => new Double3(1, 0, 0);
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static Double3 UnitY => new Double3(0, 1, 0);
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/> component set to 1, and the others to 0
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/> component set to 1, and the others to 0.
/// </summary>
public static Double3 UnitZ => new Double3(0, 0, 1);
/// <summary>
/// Creates a new <see cref="Double3"/> instance with the specified parameters
/// Creates a new <see cref="Double3"/> 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="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 Double3(double x, double y, double z)
{
X = x;
@@ -50,22 +50,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public double X { get; set; }
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public double Y { get; set; }
/// <summary>
/// Gets or sets the value of the third vector component
/// Gets or sets the value of the third vector component.
/// </summary>
public double Z { get; set; }
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public double R
{
@@ -74,7 +74,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public double G
{
@@ -83,7 +83,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the third color component
/// Gets or sets the value of the third color component.
/// </summary>
public double B
{
@@ -92,9 +92,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="Double3"/> instance
/// Gets or sets a specific component in the current <see cref="Double3"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public double this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(Double3)}[int]");
@@ -102,12 +102,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Double2 XX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Double2 XY
{
@@ -116,7 +116,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Double2 XZ
{
@@ -125,7 +125,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Double2 YX
{
@@ -134,12 +134,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Double2 YY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YY)}");
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Double2 YZ
{
@@ -148,7 +148,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Double2 ZX
{
@@ -157,7 +157,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Double2 ZY
{
@@ -166,17 +166,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Double2 ZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZ)}");
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Double2 RR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Double2 RG
{
@@ -185,7 +185,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Double2 RB
{
@@ -194,7 +194,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Double2 GR
{
@@ -203,12 +203,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Double2 GG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GG)}");
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Double2 GB
{
@@ -217,7 +217,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Double2 BR
{
@@ -226,7 +226,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Double2"/> value with the <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Double2"/> value with the <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Double2 BG
{
@@ -235,37 +235,37 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double2"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="Double2"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Double2 BB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BB)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Double3"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Double2 XXX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XXX)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Double2 XXY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XXY)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Double2 XXZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XXZ)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Double2 XYX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XYX)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Double2 XYY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XYY)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Double2 XYZ
{
@@ -274,12 +274,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Double2 XZX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XZX)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Double2 XZY
{
@@ -288,22 +288,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Double2 XZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(XZZ)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values.
/// </summary>
public Double2 YXX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YXX)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Double2 YXY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YXY)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Double2 YXZ
{
@@ -312,22 +312,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Double2 YYX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YYX)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Double2 YYY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YYY)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Double2 YYZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YYZ)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Double2 YZX
{
@@ -336,22 +336,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Double2 YZY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YZY)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Double2 YZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(YZZ)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Double2 ZXX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZXX)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Double2 ZXY
{
@@ -360,12 +360,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Double2 ZXZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZXZ)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Double2 ZYX
{
@@ -374,57 +374,57 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Double2 ZYY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZYY)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Double2 ZYZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZYZ)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Double2 ZZX => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZX)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Double2 ZZY => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZY)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="Double3"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Double2 ZZZ => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(ZZZ)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Double3"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Double2 RRR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RRR)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Double2 RRG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RRG)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Double2 RRB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RRB)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Double2 RGR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RGR)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Double2 RGG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RGG)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Double2 RGB
{
@@ -433,12 +433,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Double2 RBR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RBR)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Double2 RBG
{
@@ -447,22 +447,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Double2 RBB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(RBB)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values.
/// </summary>
public Double2 GRR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GRR)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Double2 GRG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GRG)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Double2 GRB
{
@@ -471,22 +471,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Double2 GGR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GGR)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Double3"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Double2 GGG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GGG)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Double2 GGB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GGB)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Double2 GBR
{
@@ -495,22 +495,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Double2 GBG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GBG)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Double2 GBB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(GBB)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Double2 BRR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BRR)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Double2 BRG
{
@@ -519,12 +519,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Double2 BRB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BRB)}");
/// <summary>
/// Gets or sets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Double2 BGR
{
@@ -533,62 +533,62 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Double2 BGG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BGG)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Double2 BGB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BGB)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Double2 BBR => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BBR)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="Double3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Double2 BBG => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BBG)}");
/// <summary>
/// Gets an <see cref="Double3"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="Double3"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Double2 BBB => throw new InvalidExecutionContextException($"{nameof(Double3)}.{nameof(BBB)}");
/// <summary>
/// Creates a new <see cref="Double3"/> value with the same value for all its components
/// Creates a new <see cref="Double3"/> 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="Double3"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="Double3"/> instance.</param>
public static implicit operator Double3(double x) => new Double3(x, x, x);
/// <summary>
/// Sums two <see cref="Double3"/> values
/// Sums two <see cref="Double3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Double3"/> value to sum</param>
/// <param name="right">The second <see cref="Double3"/> value to sum</param>
/// <param name="left">The first <see cref="Double3"/> value to sum.</param>
/// <param name="right">The second <see cref="Double3"/> value to sum.</param>
public static Double3 operator +(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{nameof(Double3)}.+");
/// <summary>
/// Divides two <see cref="Double3"/> values
/// Divides two <see cref="Double3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Double3"/> value to divide</param>
/// <param name="right">The second <see cref="Double3"/> value to divide</param>
/// <param name="left">The first <see cref="Double3"/> value to divide.</param>
/// <param name="right">The second <see cref="Double3"/> value to divide.</param>
public static Double3 operator /(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{nameof(Double3)}./");
/// <summary>
/// Multiplies two <see cref="Double3"/> values
/// Multiplies two <see cref="Double3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Double3"/> value to multiply</param>
/// <param name="right">The second <see cref="Double3"/> value to multiply</param>
/// <param name="left">The first <see cref="Double3"/> value to multiply.</param>
/// <param name="right">The second <see cref="Double3"/> value to multiply.</param>
public static Double3 operator *(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{nameof(Double3)}.*");
/// <summary>
/// Subtracts two <see cref="Double3"/> values
/// Subtracts two <see cref="Double3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Double3"/> value to subtract</param>
/// <param name="right">The second <see cref="Double3"/> value to subtract</param>
/// <param name="left">The first <see cref="Double3"/> value to subtract.</param>
/// <param name="right">The second <see cref="Double3"/> value to subtract.</param>
public static Double3 operator -(Double3 left, Double3 right) => throw new InvalidExecutionContextException($"{nameof(Double3)}.-");
}
}
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+36 -36
ファイルの表示
@@ -5,37 +5,37 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="float2"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="float2"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(float) * 2)]
public struct Float2
{
/// <summary>
/// Gets an <see cref="Float2"/> value with all components set to 0
/// Gets an <see cref="Float2"/> value with all components set to 0.
/// </summary>
public static Float2 Zero => 0;
/// <summary>
/// Gets an <see cref="Float2"/> value with all components set to 1
/// Gets an <see cref="Float2"/> value with all components set to 1.
/// </summary>
public static Float2 One => 1;
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// Gets an <see cref="Float2"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static Float2 UnitX => new Float2(1, 0);
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static Float2 UnitY => new Float2(0, 1);
/// <summary>
/// Creates a new <see cref="Float2"/> instance with the specified parameters
/// Creates a new <see cref="Float2"/> 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="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 Float2(float x, float y)
{
X = x;
@@ -43,17 +43,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public float X { get; set; }
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public float Y { get; set; }
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public float R
{
@@ -62,7 +62,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public float G
{
@@ -71,9 +71,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="Float2"/> instance
/// Gets or sets a specific component in the current <see cref="Float2"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public float this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(Float2)}[int]");
@@ -81,12 +81,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Float2 XX => throw new InvalidExecutionContextException($"{nameof(Float2)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Float2 XY
{
@@ -95,7 +95,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Float2 YX
{
@@ -104,17 +104,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Float2 YY => throw new InvalidExecutionContextException($"{nameof(Float2)}.{nameof(YY)}");
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Float2 RR => throw new InvalidExecutionContextException($"{nameof(Float2)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Float2 RG
{
@@ -123,7 +123,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Float2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Float2 GR
{
@@ -132,42 +132,42 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Float2 GG => throw new InvalidExecutionContextException($"{nameof(Float2)}.{nameof(GG)}");
/// <summary>
/// Creates a new <see cref="Float2"/> value with the same value for all its components
/// Creates a new <see cref="Float2"/> 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="Float2"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="Float2"/> instance.</param>
public static implicit operator Float2(float x) => new Float2(x, x);
/// <summary>
/// Sums two <see cref="Float2"/> values
/// Sums two <see cref="Float2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Float2"/> value to sum</param>
/// <param name="right">The second <see cref="Float2"/> value to sum</param>
/// <param name="left">The first <see cref="Float2"/> value to sum.</param>
/// <param name="right">The second <see cref="Float2"/> value to sum.</param>
public static Float2 operator +(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{nameof(Float2)}.+");
/// <summary>
/// Divides two <see cref="Float2"/> values
/// Divides two <see cref="Float2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Float2"/> value to divide</param>
/// <param name="right">The second <see cref="Float2"/> value to divide</param>
/// <param name="left">The first <see cref="Float2"/> value to divide.</param>
/// <param name="right">The second <see cref="Float2"/> value to divide.</param>
public static Float2 operator /(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{nameof(Float2)}./");
/// <summary>
/// Multiplies two <see cref="Float2"/> values
/// Multiplies two <see cref="Float2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Float2"/> value to multiply</param>
/// <param name="right">The second <see cref="Float2"/> value to multiply</param>
/// <param name="left">The first <see cref="Float2"/> value to multiply.</param>
/// <param name="right">The second <see cref="Float2"/> value to multiply.</param>
public static Float2 operator *(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{nameof(Float2)}.*");
/// <summary>
/// Subtracts two <see cref="Float2"/> values
/// Subtracts two <see cref="Float2"/> values.
/// </summary>
/// <param name="left">The first <see cref="Float2"/> value to subtract</param>
/// <param name="right">The second <see cref="Float2"/> value to subtract</param>
/// <param name="left">The first <see cref="Float2"/> value to subtract.</param>
/// <param name="right">The second <see cref="Float2"/> value to subtract.</param>
public static Float2 operator -(Float2 left, Float2 right) => throw new InvalidExecutionContextException($"{nameof(Float2)}.-");
}
}
+104 -104
ファイルの表示
@@ -5,43 +5,43 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="float3"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="float3"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(float) * 3)]
public struct Float3
{
/// <summary>
/// Gets an <see cref="Float3"/> value with all components set to 0
/// Gets an <see cref="Float3"/> value with all components set to 0.
/// </summary>
public static Float3 Zero => 0;
/// <summary>
/// Gets an <see cref="Float3"/> value with all components set to 1
/// Gets an <see cref="Float3"/> value with all components set to 1.
/// </summary>
public static Float3 One => 1;
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// Gets an <see cref="Float3"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static Float3 UnitX => new Float3(1, 0, 0);
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static Float3 UnitY => new Float3(0, 1, 0);
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/> component set to 1, and the others to 0
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/> component set to 1, and the others to 0.
/// </summary>
public static Float3 UnitZ => new Float3(0, 0, 1);
/// <summary>
/// Creates a new <see cref="Float3"/> instance with the specified parameters
/// Creates a new <see cref="Float3"/> 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="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 Float3(float x, float y, float z)
{
X = x;
@@ -50,22 +50,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public float X { get; set; }
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public float Y { get; set; }
/// <summary>
/// Gets or sets the value of the third vector component
/// Gets or sets the value of the third vector component.
/// </summary>
public float Z { get; set; }
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public float R
{
@@ -74,7 +74,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public float G
{
@@ -83,7 +83,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the third color component
/// Gets or sets the value of the third color component.
/// </summary>
public float B
{
@@ -92,9 +92,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="Float3"/> instance
/// Gets or sets a specific component in the current <see cref="Float3"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public float this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(Float3)}[int]");
@@ -102,12 +102,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Float2 XX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Float2 XY
{
@@ -116,7 +116,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Float2 XZ
{
@@ -125,7 +125,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Float2 YX
{
@@ -134,12 +134,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Float2 YY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YY)}");
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Float2 YZ
{
@@ -148,7 +148,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Float2 ZX
{
@@ -157,7 +157,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Float2 ZY
{
@@ -166,17 +166,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Float2 ZZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZZ)}");
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Float2 RR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Float2 RG
{
@@ -185,7 +185,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Float2 RB
{
@@ -194,7 +194,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Float2 GR
{
@@ -203,12 +203,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Float2 GG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GG)}");
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Float2 GB
{
@@ -217,7 +217,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Float2 BR
{
@@ -226,7 +226,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Float2"/> value with the <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Float2"/> value with the <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Float2 BG
{
@@ -235,37 +235,37 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float2"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="Float2"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Float2 BB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BB)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="Float3"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Float2 XXX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XXX)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Float2 XXY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XXY)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Float2 XXZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XXZ)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Float2 XYX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XYX)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Float2 XYY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XYY)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Float2 XYZ
{
@@ -274,12 +274,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Float2 XZX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XZX)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Float2 XZY
{
@@ -288,22 +288,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Float2 XZZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(XZZ)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values.
/// </summary>
public Float2 YXX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YXX)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Float2 YXY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YXY)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Float2 YXZ
{
@@ -312,22 +312,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Float2 YYX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YYX)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Float2 YYY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YYY)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Float2 YYZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YYZ)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Float2 YZX
{
@@ -336,22 +336,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Float2 YZY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YZY)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Float2 YZZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(YZZ)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Float2 ZXX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZXX)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Float2 ZXY
{
@@ -360,12 +360,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Float2 ZXZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZXZ)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Float2 ZYX
{
@@ -374,57 +374,57 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Float2 ZYY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZYY)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Float2 ZYZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZYZ)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Float2 ZZX => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZZX)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Float2 ZZY => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZZY)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="Float3"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Float2 ZZZ => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(ZZZ)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Float3"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Float2 RRR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RRR)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Float2 RRG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RRG)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Float2 RRB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RRB)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Float2 RGR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RGR)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Float2 RGG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RGG)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Float2 RGB
{
@@ -433,12 +433,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Float2 RBR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RBR)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Float2 RBG
{
@@ -447,22 +447,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Float2 RBB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(RBB)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values.
/// </summary>
public Float2 GRR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GRR)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Float2 GRG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GRG)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Float2 GRB
{
@@ -471,22 +471,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Float2 GGR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GGR)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Float3"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Float2 GGG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GGG)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Float2 GGB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GGB)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Float2 GBR
{
@@ -495,22 +495,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Float2 GBG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GBG)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Float2 GBB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(GBB)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Float2 BRR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BRR)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Float2 BRG
{
@@ -519,12 +519,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Float2 BRB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BRB)}");
/// <summary>
/// Gets or sets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Float2 BGR
{
@@ -533,62 +533,62 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Float2 BGG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BGG)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Float2 BGB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BGB)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Float2 BBR => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BBR)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="Float3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Float2 BBG => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BBG)}");
/// <summary>
/// Gets an <see cref="Float3"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="Float3"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Float2 BBB => throw new InvalidExecutionContextException($"{nameof(Float3)}.{nameof(BBB)}");
/// <summary>
/// Creates a new <see cref="Float3"/> value with the same value for all its components
/// Creates a new <see cref="Float3"/> 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="Float3"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="Float3"/> instance.</param>
public static implicit operator Float3(float x) => new Float3(x, x, x);
/// <summary>
/// Sums two <see cref="Float3"/> values
/// Sums two <see cref="Float3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Float3"/> value to sum</param>
/// <param name="right">The second <see cref="Float3"/> value to sum</param>
/// <param name="left">The first <see cref="Float3"/> value to sum.</param>
/// <param name="right">The second <see cref="Float3"/> value to sum.</param>
public static Float3 operator +(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{nameof(Float3)}.+");
/// <summary>
/// Divides two <see cref="Float3"/> values
/// Divides two <see cref="Float3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Float3"/> value to divide</param>
/// <param name="right">The second <see cref="Float3"/> value to divide</param>
/// <param name="left">The first <see cref="Float3"/> value to divide.</param>
/// <param name="right">The second <see cref="Float3"/> value to divide.</param>
public static Float3 operator /(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{nameof(Float3)}./");
/// <summary>
/// Multiplies two <see cref="Float3"/> values
/// Multiplies two <see cref="Float3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Float3"/> value to multiply</param>
/// <param name="right">The second <see cref="Float3"/> value to multiply</param>
/// <param name="left">The first <see cref="Float3"/> value to multiply.</param>
/// <param name="right">The second <see cref="Float3"/> value to multiply.</param>
public static Float3 operator *(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{nameof(Float3)}.*");
/// <summary>
/// Subtracts two <see cref="Float3"/> values
/// Subtracts two <see cref="Float3"/> values.
/// </summary>
/// <param name="left">The first <see cref="Float3"/> value to subtract</param>
/// <param name="right">The second <see cref="Float3"/> value to subtract</param>
/// <param name="left">The first <see cref="Float3"/> value to subtract.</param>
/// <param name="right">The second <see cref="Float3"/> value to subtract.</param>
public static Float3 operator -(Float3 left, Float3 right) => throw new InvalidExecutionContextException($"{nameof(Float3)}.-");
}
}
ファイル差分が大きすぎるため表示されません。 差分を読み込み
+36 -36
ファイルの表示
@@ -5,37 +5,37 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="int2"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="int2"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(int) * 2)]
public struct Int2
{
/// <summary>
/// Gets an <see cref="Int2"/> value with all components set to 0
/// 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
/// 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
/// 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 Int2(1, 0);
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// 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 Int2(0, 1);
/// <summary>
/// Creates a new <see cref="Int2"/> instance with the specified parameters
/// 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>
/// <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)
{
X = x;
@@ -43,17 +43,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public int X { get; set; }
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public int Y { get; set; }
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public int R
{
@@ -62,7 +62,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public int G
{
@@ -71,9 +71,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="Int2"/> instance
/// Gets or sets a specific component in the current <see cref="Int2"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public int this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(Int2)}[int]");
@@ -81,12 +81,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="X"/> value for all components
/// 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
/// Gets or sets an <see cref="Int2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Int2 XY
{
@@ -95,7 +95,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Int2 YX
{
@@ -104,17 +104,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> value for all components
/// 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
/// 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
/// Gets or sets an <see cref="Int2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Int2 RG
{
@@ -123,7 +123,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Int2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Int2 GR
{
@@ -132,42 +132,42 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="G"/> value for all components
/// 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
/// 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>
/// <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 Int2(x, x);
/// <summary>
/// Sums two <see cref="Int2"/> values
/// 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>
/// <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
/// 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>
/// <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
/// 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>
/// <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
/// 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>
/// <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)}.-");
}
}
+104 -104
ファイルの表示
@@ -5,43 +5,43 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="int3"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="int3"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(int) * 3)]
public struct Int3
{
/// <summary>
/// Gets an <see cref="Int3"/> value with all components set to 0
/// 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
/// 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
/// 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 Int3(1, 0, 0);
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// 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 Int3(0, 1, 0);
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/> component set to 1, and the others to 0
/// 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 Int3(0, 0, 1);
/// <summary>
/// Creates a new <see cref="Int3"/> instance with the specified parameters
/// 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>
/// <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)
{
X = x;
@@ -50,22 +50,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public int X { get; set; }
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public int Y { get; set; }
/// <summary>
/// Gets or sets the value of the third vector component
/// Gets or sets the value of the third vector component.
/// </summary>
public int Z { get; set; }
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public int R
{
@@ -74,7 +74,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public int G
{
@@ -83,7 +83,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the third color component
/// Gets or sets the value of the third color component.
/// </summary>
public int B
{
@@ -92,9 +92,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="Int3"/> instance
/// Gets or sets a specific component in the current <see cref="Int3"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public int this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(Int3)}[int]");
@@ -102,12 +102,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="X"/> value for all components
/// 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
/// Gets or sets an <see cref="Int2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Int2 XY
{
@@ -116,7 +116,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Int2 XZ
{
@@ -125,7 +125,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Int2 YX
{
@@ -134,12 +134,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="Y"/> value for all components
/// 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
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Int2 YZ
{
@@ -148,7 +148,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Int2 ZX
{
@@ -157,7 +157,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Int2 ZY
{
@@ -166,17 +166,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="Z"/> value for all components
/// 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
/// 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
/// Gets or sets an <see cref="Int2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Int2 RG
{
@@ -185,7 +185,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Int2 RB
{
@@ -194,7 +194,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Int2 GR
{
@@ -203,12 +203,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="G"/> value for all components
/// 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
/// Gets or sets an <see cref="Int2"/> value with the <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Int2 GB
{
@@ -217,7 +217,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Int2 BR
{
@@ -226,7 +226,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="Int2"/> value with the <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="Int2"/> value with the <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Int2 BG
{
@@ -235,37 +235,37 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int2"/> value with the <see cref="B"/> value for all components
/// 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
/// Gets an <see cref="Int3"/> value with the <see cref="X"/> value for all components.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Int2 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
/// Gets or sets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Int2 XYZ
{
@@ -274,12 +274,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Int2 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
/// Gets or sets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Int2 XZY
{
@@ -288,22 +288,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Int2 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
/// Gets or sets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Int2 YXZ
{
@@ -312,22 +312,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Int2 YYX => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(YYX)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Int2 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
/// Gets or sets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Int2 YZX
{
@@ -336,22 +336,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public Int2 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
/// Gets or sets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public Int2 ZXY
{
@@ -360,12 +360,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public Int2 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
/// Gets or sets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public Int2 ZYX
{
@@ -374,57 +374,57 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public Int2 ZZY => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZY)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="Int3"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public Int2 ZZZ => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(ZZZ)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="Int3"/> value with the <see cref="R"/> value for all components.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Int2 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
/// Gets or sets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Int2 RGB
{
@@ -433,12 +433,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Int2 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
/// Gets or sets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Int2 RBG
{
@@ -447,22 +447,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Int2 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
/// Gets or sets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Int2 GRB
{
@@ -471,22 +471,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Int2 GGR => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(GGR)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="Int3"/> value with the <see cref="G"/> value for all components.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Int2 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
/// Gets or sets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Int2 GBR
{
@@ -495,22 +495,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public Int2 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
/// Gets or sets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public Int2 BRG
{
@@ -519,12 +519,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public Int2 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
/// Gets or sets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public Int2 BGR
{
@@ -533,62 +533,62 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public Int2 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
/// Gets an <see cref="Int3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public Int2 BBG => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBG)}");
/// <summary>
/// Gets an <see cref="Int3"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="Int3"/> value with the <see cref="B"/> value for all components.
/// </summary>
public Int2 BBB => throw new InvalidExecutionContextException($"{nameof(Int3)}.{nameof(BBB)}");
/// <summary>
/// Creates a new <see cref="Int3"/> value with the same value for all its components
/// 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>
/// <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 Int3(x, x, x);
/// <summary>
/// Sums two <see cref="Int3"/> values
/// 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>
/// <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
/// 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>
/// <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
/// 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>
/// <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
/// 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>
/// <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 -4
ファイルの表示
@@ -3,22 +3,22 @@
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that indicates the ids of a given GPU thread running a compute shader
/// A <see langword="struct"/> that indicates the ids of a given GPU thread running a compute shader.
/// </summary>
public readonly struct ThreadIds
{
/// <summary>
/// Gets the X id of the current thread
/// Gets the X id of the current thread.
/// </summary>
public int X => throw new InvalidExecutionContextException($"{nameof(ThreadIds)}.{nameof(X)}");
/// <summary>
/// Gets the Y id of the current thread
/// Gets the Y id of the current thread.
/// </summary>
public int Y => throw new InvalidExecutionContextException($"{nameof(ThreadIds)}.{nameof(Y)}");
/// <summary>
/// Gets the Z id of the current thread
/// Gets the Z id of the current thread.
/// </summary>
public int Z => throw new InvalidExecutionContextException($"{nameof(ThreadIds)}.{nameof(Z)}");
}
+36 -36
ファイルの表示
@@ -5,37 +5,37 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="uint2"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="uint2"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(uint) * 2)]
public struct UInt2
{
/// <summary>
/// Gets an <see cref="UInt2"/> value with all components set to 0
/// Gets an <see cref="UInt2"/> value with all components set to 0.
/// </summary>
public static UInt2 Zero => 0;
/// <summary>
/// Gets an <see cref="UInt2"/> value with all components set to 1
/// Gets an <see cref="UInt2"/> value with all components set to 1.
/// </summary>
public static UInt2 One => 1;
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// Gets an <see cref="UInt2"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static UInt2 UnitX => new UInt2(1, 0);
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static UInt2 UnitY => new UInt2(0, 1);
/// <summary>
/// Creates a new <see cref="UInt2"/> instance with the specified parameters
/// Creates a new <see cref="UInt2"/> 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="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 UInt2(uint x, uint y)
{
X = x;
@@ -43,17 +43,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public uint X { get; set; }
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public uint Y { get; set; }
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public uint R
{
@@ -62,7 +62,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public uint G
{
@@ -71,9 +71,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="UInt2"/> instance
/// Gets or sets a specific component in the current <see cref="UInt2"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public float this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(UInt2)}[int]");
@@ -81,12 +81,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public UInt2 XX => throw new InvalidExecutionContextException($"{nameof(UInt2)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 XY
{
@@ -95,7 +95,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public UInt2 YX
{
@@ -104,17 +104,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public UInt2 YY => throw new InvalidExecutionContextException($"{nameof(UInt2)}.{nameof(YY)}");
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public UInt2 RR => throw new InvalidExecutionContextException($"{nameof(UInt2)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public UInt2 RG
{
@@ -123,7 +123,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="UInt2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public UInt2 GR
{
@@ -132,42 +132,42 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public UInt2 GG => throw new InvalidExecutionContextException($"{nameof(UInt2)}.{nameof(GG)}");
/// <summary>
/// Creates a new <see cref="UInt2"/> value with the same value for all its components
/// Creates a new <see cref="UInt2"/> 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="UInt2"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="UInt2"/> instance.</param>
public static implicit operator UInt2(uint x) => new UInt2(x, x);
/// <summary>
/// Sums two <see cref="UInt2"/> values
/// Sums two <see cref="UInt2"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt2"/> value to sum</param>
/// <param name="right">The second <see cref="UInt2"/> value to sum</param>
/// <param name="left">The first <see cref="UInt2"/> value to sum.</param>
/// <param name="right">The second <see cref="UInt2"/> value to sum.</param>
public static UInt2 operator +(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.+");
/// <summary>
/// Divides two <see cref="UInt2"/> values
/// Divides two <see cref="UInt2"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt2"/> value to divide</param>
/// <param name="right">The second <see cref="UInt2"/> value to divide</param>
/// <param name="left">The first <see cref="UInt2"/> value to divide.</param>
/// <param name="right">The second <see cref="UInt2"/> value to divide.</param>
public static UInt2 operator /(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{nameof(UInt2)}./");
/// <summary>
/// Multiplies two <see cref="UInt2"/> values
/// Multiplies two <see cref="UInt2"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt2"/> value to multiply</param>
/// <param name="right">The second <see cref="UInt2"/> value to multiply</param>
/// <param name="left">The first <see cref="UInt2"/> value to multiply.</param>
/// <param name="right">The second <see cref="UInt2"/> value to multiply.</param>
public static UInt2 operator *(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.*");
/// <summary>
/// Subtracts two <see cref="UInt2"/> values
/// Subtracts two <see cref="UInt2"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt2"/> value to subtract</param>
/// <param name="right">The second <see cref="UInt2"/> value to subtract</param>
/// <param name="left">The first <see cref="UInt2"/> value to subtract.</param>
/// <param name="right">The second <see cref="UInt2"/> value to subtract.</param>
public static UInt2 operator -(UInt2 left, UInt2 right) => throw new InvalidExecutionContextException($"{nameof(UInt2)}.-");
}
}
+104 -104
ファイルの表示
@@ -5,43 +5,43 @@ using ComputeSharp.Exceptions;
namespace ComputeSharp
{
/// <summary>
/// A <see langword="struct"/> that maps the <see langword="uint3"/> HLSL type
/// A <see langword="struct"/> that maps the <see langword="uint3"/> HLSL type.
/// </summary>
[DebuggerDisplay("({X}, {Y}, {Z})")]
[StructLayout(LayoutKind.Sequential, Size = sizeof(uint) * 3)]
public struct UInt3
{
/// <summary>
/// Gets an <see cref="UInt3"/> value with all components set to 0
/// Gets an <see cref="UInt3"/> value with all components set to 0.
/// </summary>
public static UInt3 Zero => 0;
/// <summary>
/// Gets an <see cref="UInt3"/> value with all components set to 1
/// Gets an <see cref="UInt3"/> value with all components set to 1.
/// </summary>
public static UInt3 One => 1;
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/> component set to 1, and the others to 0
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/> component set to 1, and the others to 0.
/// </summary>
public static UInt3 UnitX => new UInt3(1, 0, 0);
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/> component set to 1, and the others to 0
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/> component set to 1, and the others to 0.
/// </summary>
public static UInt3 UnitY => new UInt3(0, 1, 0);
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/> component set to 1, and the others to 0
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/> component set to 1, and the others to 0.
/// </summary>
public static UInt3 UnitZ => new UInt3(0, 0, 1);
/// <summary>
/// Creates a new <see cref="UInt3"/> instance with the specified parameters
/// Creates a new <see cref="UInt3"/> 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="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 UInt3(uint x, uint y, uint z)
{
X = x;
@@ -50,22 +50,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the first vector component
/// Gets or sets the value of the first vector component.
/// </summary>
public uint X { get; set; }
/// <summary>
/// Gets or sets the value of the second vector component
/// Gets or sets the value of the second vector component.
/// </summary>
public uint Y { get; set; }
/// <summary>
/// Gets or sets the value of the third vector component
/// Gets or sets the value of the third vector component.
/// </summary>
public uint Z { get; set; }
/// <summary>
/// Gets or sets the value of the first color component
/// Gets or sets the value of the first color component.
/// </summary>
public uint R
{
@@ -74,7 +74,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the second color component
/// Gets or sets the value of the second color component.
/// </summary>
public uint G
{
@@ -83,7 +83,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets the value of the third color component
/// Gets or sets the value of the third color component.
/// </summary>
public uint B
{
@@ -92,9 +92,9 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="UInt3"/> instance
/// Gets or sets a specific component in the current <see cref="UInt3"/> instance.
/// </summary>
/// <param name="i">The index of the component to access</param>
/// <param name="i">The index of the component to access.</param>
public uint this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}[int]");
@@ -102,12 +102,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="X"/> value for all components.
/// </summary>
public UInt2 XX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XX)}");
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 XY
{
@@ -116,7 +116,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 XZ
{
@@ -125,7 +125,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public UInt2 YX
{
@@ -134,12 +134,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public UInt2 YY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YY)}");
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 YZ
{
@@ -148,7 +148,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public UInt2 ZX
{
@@ -157,7 +157,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 ZY
{
@@ -166,17 +166,17 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public UInt2 ZZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZZ)}");
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="R"/> value for all components.
/// </summary>
public UInt2 RR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RR)}");
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public UInt2 RG
{
@@ -185,7 +185,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public UInt2 RB
{
@@ -194,7 +194,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public UInt2 GR
{
@@ -203,12 +203,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="G"/> value for all components.
/// </summary>
public UInt2 GG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GG)}");
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public UInt2 GB
{
@@ -217,7 +217,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public UInt2 BR
{
@@ -226,7 +226,7 @@ namespace ComputeSharp
}
/// <summary>
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="UInt2"/> value with the <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public UInt2 BG
{
@@ -235,37 +235,37 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt2"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="UInt2"/> value with the <see cref="B"/> value for all components.
/// </summary>
public UInt2 BB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BB)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/> value for all components
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/> value for all components.
/// </summary>
public UInt2 XXX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XXX)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 XXY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XXY)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 XXZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XXZ)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public UInt2 XYX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XYX)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 XYY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XYY)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 XYZ
{
@@ -274,12 +274,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public UInt2 XZX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XZX)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 XZY
{
@@ -288,22 +288,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="X"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 XZZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(XZZ)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="X"/> values.
/// </summary>
public UInt2 YXX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YXX)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 YXY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YXY)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 YXZ
{
@@ -312,22 +312,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public UInt2 YYX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YYX)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/> value for all components
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/> value for all components.
/// </summary>
public UInt2 YYY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YYY)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 YYZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YYZ)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public UInt2 YZX
{
@@ -336,22 +336,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 YZY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YZY)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Y"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 YZZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(YZZ)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 ZXX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZXX)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 ZXY
{
@@ -360,12 +360,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="X"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 ZXZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZXZ)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="X"/> values.
/// </summary>
public UInt2 ZYX
{
@@ -374,57 +374,57 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 ZYY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZYY)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Y"/> and <see cref="Z"/> values.
/// </summary>
public UInt2 ZYZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZYZ)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="X"/> values.
/// </summary>
public UInt2 ZZX => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZZX)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/>, <see cref="Z"/> and <see cref="Y"/> values.
/// </summary>
public UInt2 ZZY => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZZY)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/> value for all components
/// Gets an <see cref="UInt3"/> value with the <see cref="Z"/> value for all components.
/// </summary>
public UInt2 ZZZ => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(ZZZ)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/> value for all components
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/> value for all components.
/// </summary>
public UInt2 RRR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RRR)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public UInt2 RRG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RRG)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public UInt2 RRB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RRB)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public UInt2 RGR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RGR)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public UInt2 RGG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RGG)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public UInt2 RGB
{
@@ -433,12 +433,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public UInt2 RBR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RBR)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public UInt2 RBG
{
@@ -447,22 +447,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="R"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public UInt2 RBB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(RBB)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="R"/> values.
/// </summary>
public UInt2 GRR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GRR)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public UInt2 GRG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GRG)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public UInt2 GRB
{
@@ -471,22 +471,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public UInt2 GGR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GGR)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/> value for all components
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/> value for all components.
/// </summary>
public UInt2 GGG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GGG)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public UInt2 GGB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GGB)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public UInt2 GBR
{
@@ -495,22 +495,22 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public UInt2 GBG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GBG)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="G"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public UInt2 GBB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(GBB)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="B"/> values.
/// </summary>
public UInt2 BRR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BRR)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="G"/> values.
/// </summary>
public UInt2 BRG
{
@@ -519,12 +519,12 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="R"/> and <see cref="B"/> values.
/// </summary>
public UInt2 BRB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BRB)}");
/// <summary>
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values
/// Gets or sets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="R"/> values.
/// </summary>
public UInt2 BGR
{
@@ -533,62 +533,62 @@ namespace ComputeSharp
}
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="G"/> values.
/// </summary>
public UInt2 BGG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BGG)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="G"/> and <see cref="B"/> values.
/// </summary>
public UInt2 BGB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BGB)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="R"/> values.
/// </summary>
public UInt2 BBR => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BBR)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/>, <see cref="B"/> and <see cref="G"/> values.
/// </summary>
public UInt2 BBG => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BBG)}");
/// <summary>
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/> value for all components
/// Gets an <see cref="UInt3"/> value with the <see cref="B"/> value for all components.
/// </summary>
public UInt2 BBB => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(BBB)}");
/// <summary>
/// Creates a new <see cref="UInt3"/> value with the same value for all its components
/// Creates a new <see cref="UInt3"/> 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="UInt3"/> instance</param>
/// <param name="x">The value to use for the components of the new <see cref="UInt3"/> instance.</param>
public static implicit operator UInt3(uint x) => new UInt3(x, x, x);
/// <summary>
/// Sums two <see cref="UInt3"/> values
/// Sums two <see cref="UInt3"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt3"/> value to sum</param>
/// <param name="right">The second <see cref="UInt3"/> value to sum</param>
/// <param name="left">The first <see cref="UInt3"/> value to sum.</param>
/// <param name="right">The second <see cref="UInt3"/> value to sum.</param>
public static UInt3 operator +(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.+");
/// <summary>
/// Divides two <see cref="UInt3"/> values
/// Divides two <see cref="UInt3"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt3"/> value to divide</param>
/// <param name="right">The second <see cref="UInt3"/> value to divide</param>
/// <param name="left">The first <see cref="UInt3"/> value to divide.</param>
/// <param name="right">The second <see cref="UInt3"/> value to divide.</param>
public static UInt3 operator /(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{nameof(UInt3)}./");
/// <summary>
/// Multiplies two <see cref="UInt3"/> values
/// Multiplies two <see cref="UInt3"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt3"/> value to multiply</param>
/// <param name="right">The second <see cref="UInt3"/> value to multiply</param>
/// <param name="left">The first <see cref="UInt3"/> value to multiply.</param>
/// <param name="right">The second <see cref="UInt3"/> value to multiply.</param>
public static UInt3 operator *(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.*");
/// <summary>
/// Subtracts two <see cref="UInt3"/> values
/// Subtracts two <see cref="UInt3"/> values.
/// </summary>
/// <param name="left">The first <see cref="UInt3"/> value to subtract</param>
/// <param name="right">The second <see cref="UInt3"/> value to subtract</param>
/// <param name="left">The first <see cref="UInt3"/> value to subtract.</param>
/// <param name="right">The second <see cref="UInt3"/> value to subtract.</param>
public static UInt3 operator -(UInt3 left, UInt3 right) => throw new InvalidExecutionContextException($"{nameof(UInt3)}.-");
}
}
ファイル差分が大きすぎるため表示されません。 差分を読み込み