Added missing dots
このコミットが含まれているのは:
1 親
e45b712000
コミット
33870886b6
51ファイル変更
+5686
-5686
検索条件に一致するファイルはありません
@@ -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)}.-");
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする