Switched indexers from uint to int

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-25 12:28:13 +02:00
1 親 332701c0fa
コミット de42a9de7e
7ファイル変更
+15 -19

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

+1 -1
ファイルの表示
@@ -39,7 +39,7 @@ namespace ComputeSharp.Graphics.Buffers
/// </summary>
/// <param name="i">The index of the value to get</param>
/// <remarks>This API can only be used from a compute shader, and will always throw if used anywhere else</remarks>
public T this[uint i] => throw new InvalidExecutionContextException($"{nameof(ConstantBuffer<T>)}<T>[uint i]");
public T this[int i] => throw new InvalidExecutionContextException($"{nameof(ConstantBuffer<T>)}<T>[int i]");
/// <inheritdoc/>
public override void GetData(Span<T> span, int offset, int count)
+1 -1
ファイルの表示
@@ -22,6 +22,6 @@ namespace ComputeSharp.Graphics.Buffers
/// </summary>
/// <param name="i">The index of the value to get</param>
/// <remarks>This API can only be used from a compute shader, and will always throw if used anywhere else</remarks>
public T this[uint i] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyBuffer<T>)}<T>[uint i]");
public T this[int i] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyBuffer<T>)}<T>[int i]");
}
}
+1 -1
ファイルの表示
@@ -22,6 +22,6 @@ namespace ComputeSharp.Graphics.Buffers
/// </summary>
/// <param name="i">The index of the value to get or set</param>
/// <remarks>This API can only be used from a compute shader, and will always throw if used anywhere else</remarks>
public ref T this[uint i] => throw new InvalidExecutionContextException($"{nameof(ReadWriteBuffer<T>)}<T>[uint i]");
public ref T this[int i] => throw new InvalidExecutionContextException($"{nameof(ReadWriteBuffer<T>)}<T>[int i]");
}
}