diff --git a/src/ComputeSharp.D2D1/Resources/D2D1ResourceTexture1D.cs b/src/ComputeSharp.D2D1/Resources/D2D1ResourceTexture1D.cs
index 33b49698..4796f6f4 100644
--- a/src/ComputeSharp.D2D1/Resources/D2D1ResourceTexture1D.cs
+++ b/src/ComputeSharp.D2D1/Resources/D2D1ResourceTexture1D.cs
@@ -23,9 +23,9 @@ public readonly struct D2D1ResourceTexture1D
public ref readonly Float4 this[int x] => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture2D)}[{typeof(int)}]");
///
- /// Gets a single value from the current readonly texture with linear sampling.
+ /// Retrieves a single value from the current readonly texture with linear sampling.
///
/// The horizontal normalized offset 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 readonly Float4 this[float u] => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture2D)}[{typeof(float)}]");
+ public ref readonly Float4 Sample(float u) => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture2D)}.{nameof(Sample)}({typeof(float)})");
}
diff --git a/src/ComputeSharp.D2D1/Resources/D2D1ResourceTexture2D.cs b/src/ComputeSharp.D2D1/Resources/D2D1ResourceTexture2D.cs
index c35bfbbb..dabb4e5f 100644
--- a/src/ComputeSharp.D2D1/Resources/D2D1ResourceTexture2D.cs
+++ b/src/ComputeSharp.D2D1/Resources/D2D1ResourceTexture2D.cs
@@ -37,17 +37,17 @@ public readonly struct D2D1ResourceTexture2D
public ref readonly Float4 this[Int2 xy] => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture2D)}[{typeof(Int2)}]");
///
- /// Gets a single value from the current readonly texture with linear sampling.
+ /// Retrieves a single value from the current readonly texture with linear sampling.
///
/// The horizontal normalized offset of the value to get.
/// The vertical normalized offset 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 readonly Float4 this[float u, float v] => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture2D)}[{typeof(float)}, {typeof(float)}]");
+ public ref readonly Float4 Sample(float u, float v) => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture2D)}.{nameof(Sample)}({typeof(float)}, {typeof(float)})");
///
- /// Gets a single value from the current readonly texture with linear sampling.
+ /// Retrieves a single value from the current readonly texture with linear sampling.
///
/// The normalized 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 readonly Float4 this[Float2 uv] => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture2D)}[{typeof(Float2)}]");
+ public ref readonly Float4 Sample(Float2 uv) => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture2D)}.{nameof(Sample)}({typeof(Float2)})");
}
diff --git a/src/ComputeSharp.D2D1/Resources/D2D1ResourceTexture3D.cs b/src/ComputeSharp.D2D1/Resources/D2D1ResourceTexture3D.cs
index ff927558..9d50238e 100644
--- a/src/ComputeSharp.D2D1/Resources/D2D1ResourceTexture3D.cs
+++ b/src/ComputeSharp.D2D1/Resources/D2D1ResourceTexture3D.cs
@@ -44,18 +44,18 @@ public readonly struct D2D1ResourceTexture3D
public ref readonly Float4 this[Int3 xyz] => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture3D)}[{typeof(Int3)}]");
///
- /// Gets a single value from the current readonly texture with linear sampling.
+ /// Retrieves a single value from the current readonly texture with linear sampling.
///
/// The horizontal normalized offset of the value to get.
/// The vertical normalized offset of the value to get.
/// The depthwise offset 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 readonly Float4 this[float u, float v, float w] => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture3D)}[{typeof(float)}, {typeof(float)}, {typeof(float)}]");
+ public ref readonly Float4 Sample(float u, float v, float w) => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture3D)}.{nameof(Sample)}({typeof(float)}, {typeof(float)}, {typeof(float)})");
///
- /// Gets a single value from the current readonly texture with linear sampling.
+ /// Retrieves a single value from the current readonly texture with linear sampling.
///
/// The normalized 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 readonly Float4 this[Float3 uvw] => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture3D)}[{typeof(Float3)}]");
+ public ref readonly Float4 Sample(Float3 uvw) => throw new InvalidExecutionContextException($"{typeof(D2D1ResourceTexture3D)}.{nameof(Sample)}({typeof(Float3)})");
}