Refactored vector type indexers, switched to ref

このコミットが含まれているのは:
Sergio Pedri committed 2021-02-24 17:47:58 +01:00
1 親 c0bc242c7a
コミット e9e1b6e974
31ファイル変更
+150 -157

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

-10
ファイルの表示
@@ -70,16 +70,6 @@ namespace ComputeSharp
set => throw new InvalidExecutionContextException($"{nameof(UInt2)}.{nameof(G)}");
}
/// <summary>
/// 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>
public float this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(UInt2)}[int]");
set => throw new InvalidExecutionContextException($"{nameof(UInt2)}[int]");
}
/// <summary>
/// Creates a new <see cref="UInt2"/> value with the same value for all its components.
/// </summary>
+9
ファイルの表示
@@ -5,6 +5,15 @@ namespace ComputeSharp
/// <inheritdoc cref="UInt2"/>
public partial struct UInt2
{
/// <summary>
/// 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>
public ref uint this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(UInt2)}[int]");
}
/// <summary>
/// Gets a <see cref="UInt2"/> value with the values <see cref="X"/>, <see cref="X"/>.
/// </summary>
-10
ファイルの表示
@@ -91,16 +91,6 @@ namespace ComputeSharp
set => throw new InvalidExecutionContextException($"{nameof(UInt3)}.{nameof(B)}");
}
/// <summary>
/// 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>
public uint this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}[int]");
set => throw new InvalidExecutionContextException($"{nameof(UInt3)}[int]");
}
/// <summary>
/// Creates a new <see cref="UInt3"/> value with the same value for all its components.
/// </summary>
+9
ファイルの表示
@@ -5,6 +5,15 @@ namespace ComputeSharp
/// <inheritdoc cref="UInt3"/>
public partial struct UInt3
{
/// <summary>
/// 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>
public ref uint this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(UInt3)}[int]");
}
/// <summary>
/// Gets a <see cref="UInt2"/> value with the values <see cref="X"/>, <see cref="X"/>.
/// </summary>
-10
ファイルの表示
@@ -112,16 +112,6 @@ namespace ComputeSharp
set => throw new InvalidExecutionContextException($"{nameof(UInt4)}.{nameof(A)}");
}
/// <summary>
/// Gets or sets a specific component in the current <see cref="UInt4"/> instance.
/// </summary>
/// <param name="i">The index of the component to access.</param>
public uint this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(UInt4)}[uint]");
set => throw new InvalidExecutionContextException($"{nameof(UInt4)}[uint]");
}
/// <summary>
/// Creates a new <see cref="UInt4"/> value with the same value for all its components.
/// </summary>
+9
ファイルの表示
@@ -5,6 +5,15 @@ namespace ComputeSharp
/// <inheritdoc cref="UInt4"/>
public partial struct UInt4
{
/// <summary>
/// Gets or sets a specific component in the current <see cref="UInt4"/> instance.
/// </summary>
/// <param name="i">The index of the component to access.</param>
public ref uint this[int i]
{
get => throw new InvalidExecutionContextException($"{nameof(UInt4)}[int]");
}
/// <summary>
/// Gets a <see cref="UInt2"/> value with the values <see cref="X"/>, <see cref="X"/>.
/// </summary>