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()
+2 -2
ファイルの表示
@@ -161,7 +161,7 @@ namespace ComputeSharp.Tests
public void Execute(ThreadIds ids)
{
destination[ids.Y * 32 + ids.X] = source[new((uint)ids.X, (uint)ids.Y)];
destination[ids.Y * 32 + ids.X] = source[new(ids.X, ids.Y)];
}
}
@@ -190,7 +190,7 @@ namespace ComputeSharp.Tests
public void Execute(ThreadIds ids)
{
destination[new((uint)ids.X, (uint)ids.Y)] = source[new((uint)ids.X, (uint)ids.Y)];
destination[new(ids.X, ids.Y)] = source[new(ids.X, ids.Y)];
}
}
}
+2 -2
ファイルの表示
@@ -195,7 +195,7 @@ namespace ComputeSharp.Tests
public void Execute(ThreadIds ids)
{
destination[ids.Z * 32 * 32 + ids.Y * 32 + ids.X] = source[new((uint)ids.X, (uint)ids.Y, (uint)ids.Z)];
destination[ids.Z * 32 * 32 + ids.Y * 32 + ids.X] = source[new(ids.X, ids.Y, ids.Z)];
}
}
@@ -224,7 +224,7 @@ namespace ComputeSharp.Tests
public void Execute(ThreadIds ids)
{
destination[new((uint)ids.X, (uint)ids.Y, (uint)ids.Z)] = source[new((uint)ids.X, (uint)ids.Y, (uint)ids.Z)];
destination[new(ids.X, ids.Y, ids.Z)] = source[new(ids.X, ids.Y, ids.Z)];
}
}
}