Switched texture indexers to signed int

このコミットが含まれているのは:
Sergio Pedri committed 2020-12-07 12:05:59 +01:00
1 親 03bbbe7724
コミット af9a391214
6ファイル変更
+8 -8

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

+1 -1
ファイルの表示
@@ -32,7 +32,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="xy">The coordinates 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[UInt2 xy] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture2D<T>)}<T>[UInt2]");
public T this[Int2 xy] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture2D<T>)}<T>[Int2]");
/// <inheritdoc/>
public override string ToString()
+1 -1
ファイルの表示
@@ -33,7 +33,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="xyz">The coordinates 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[UInt3 xyz] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture3D<T>)}<T>[UInt3]");
public T this[Int3 xyz] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture3D<T>)}<T>[Int3]");
/// <inheritdoc/>
public override string ToString()
+1 -1
ファイルの表示
@@ -32,7 +32,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="xy">The coordinates 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 ref T this[UInt2 xy] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture2D<T>)}<T>[UInt2]");
public ref T this[Int2 xy] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture2D<T>)}<T>[Int2]");
/// <inheritdoc/>
public override string ToString()
+1 -1
ファイルの表示
@@ -33,7 +33,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="xyz">The coordinates 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 ref T this[UInt3 xyz] => throw new InvalidExecutionContextException($"{nameof(ReadWriteTexture3D<T>)}<T>[UInt3]");
public ref T this[Int3 xyz] => throw new InvalidExecutionContextException($"{nameof(ReadWriteTexture3D<T>)}<T>[Int3]");
/// <inheritdoc/>
public override string ToString()