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