diff --git a/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture2D{T}.cs b/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture2D{T}.cs
index 6928d322..c2d93771 100644
--- a/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture2D{T}.cs
+++ b/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture2D{T}.cs
@@ -32,7 +32,7 @@ namespace ComputeSharp
///
/// The coordinates of the value to get.
/// This API can only be used from a compute shader, and will always throw if used anywhere else.
- public T this[UInt2 xy] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture2D)}[UInt2]");
+ public T this[Int2 xy] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture2D)}[Int2]");
///
public override string ToString()
diff --git a/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture3D{T}.cs b/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture3D{T}.cs
index 2d17d352..26bf0c7d 100644
--- a/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture3D{T}.cs
+++ b/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture3D{T}.cs
@@ -33,7 +33,7 @@ namespace ComputeSharp
///
/// The coordinates of the value to get.
/// This API can only be used from a compute shader, and will always throw if used anywhere else.
- public T this[UInt3 xyz] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture3D)}[UInt3]");
+ public T this[Int3 xyz] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture3D)}[Int3]");
///
public override string ToString()
diff --git a/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture2D{T}.cs b/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture2D{T}.cs
index 9ff4aae9..925be95d 100644
--- a/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture2D{T}.cs
+++ b/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture2D{T}.cs
@@ -32,7 +32,7 @@ namespace ComputeSharp
///
/// The coordinates of the value to get.
/// This API can only be used from a compute shader, and will always throw if used anywhere else.
- public ref T this[UInt2 xy] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture2D)}[UInt2]");
+ public ref T this[Int2 xy] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture2D)}[Int2]");
///
public override string ToString()
diff --git a/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture3D{T}.cs b/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture3D{T}.cs
index 414c4854..ee042fa4 100644
--- a/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture3D{T}.cs
+++ b/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture3D{T}.cs
@@ -33,7 +33,7 @@ namespace ComputeSharp
///
/// The coordinates of the value to get.
/// This API can only be used from a compute shader, and will always throw if used anywhere else.
- public ref T this[UInt3 xyz] => throw new InvalidExecutionContextException($"{nameof(ReadWriteTexture3D)}[UInt3]");
+ public ref T this[Int3 xyz] => throw new InvalidExecutionContextException($"{nameof(ReadWriteTexture3D)}[Int3]");
///
public override string ToString()
diff --git a/tests/ComputeSharp.Tests/Texture2DTests.cs b/tests/ComputeSharp.Tests/Texture2DTests.cs
index 73e37112..c6496a8a 100644
--- a/tests/ComputeSharp.Tests/Texture2DTests.cs
+++ b/tests/ComputeSharp.Tests/Texture2DTests.cs
@@ -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)];
}
}
}
diff --git a/tests/ComputeSharp.Tests/Texture3DTests.cs b/tests/ComputeSharp.Tests/Texture3DTests.cs
index 43145dd4..c2218a55 100644
--- a/tests/ComputeSharp.Tests/Texture3DTests.cs
+++ b/tests/ComputeSharp.Tests/Texture3DTests.cs
@@ -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)];
}
}
}