diff --git a/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture2D{T,TPixel}.cs b/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture2D{T,TPixel}.cs index 771fb853..ad66a8a2 100644 --- a/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture2D{T,TPixel}.cs +++ b/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture2D{T,TPixel}.cs @@ -33,19 +33,19 @@ namespace ComputeSharp } /// - /// Gets a single value from the current readonly texture. + /// Gets a single value from the current readonly texture. /// /// The horizontal offset of the value to get. /// The vertical 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 T this[int x, int y] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture2D)}[int,int]"); + public TPixel this[int x, int y] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture2D)}[int,int]"); /// - /// Gets a single value from the current readonly texture. + /// Gets a single value from the current readonly texture. /// /// 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[Int2 xy] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture2D)}[Int2]"); + public TPixel this[Int2 xy] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture2D)}[Int2]"); /// public override string ToString() diff --git a/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture3D{T,TPixel}.cs b/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture3D{T,TPixel}.cs index e0eaedb0..35d64c8e 100644 --- a/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture3D{T,TPixel}.cs +++ b/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture3D{T,TPixel}.cs @@ -34,20 +34,20 @@ namespace ComputeSharp } /// - /// Gets a single value from the current readonly texture. + /// Gets a single value from the current readonly texture. /// /// The horizontal offset of the value to get. /// The vertical 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 T this[int x, int y, int z] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture3D)}[int,int,int]"); + public TPixel this[int x, int y, int z] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture3D)}[int,int,int]"); /// - /// Gets a single value from the current readonly texture. + /// Gets a single value from the current readonly texture. /// /// 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[Int3 xyz] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture3D)}[Int3]"); + public TPixel this[Int3 xyz] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture3D)}[Int3]"); /// public override string ToString() diff --git a/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture2D{T,TPixel}.cs b/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture2D{T,TPixel}.cs index a49e97ab..ca284d79 100644 --- a/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture2D{T,TPixel}.cs +++ b/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture2D{T,TPixel}.cs @@ -33,7 +33,7 @@ namespace ComputeSharp } /// - /// Gets a single value from the current writeable texture. + /// Gets a single value from the current writeable texture. /// /// The horizontal offset of the value to get. /// The vertical offset of the value to get. @@ -41,7 +41,7 @@ namespace ComputeSharp public ref TPixel this[int x, int y] => throw new InvalidExecutionContextException($"{nameof(ReadWriteTexture2D)}[int,int]"); /// - /// Gets or sets a single value from the current writeable texture. + /// Gets or sets a single value from the current writeable texture. /// /// 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. diff --git a/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture3D{T,TPixel}.cs b/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture3D{T,TPixel}.cs index 2d44f219..32acd100 100644 --- a/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture3D{T,TPixel}.cs +++ b/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture3D{T,TPixel}.cs @@ -34,20 +34,20 @@ namespace ComputeSharp } /// - /// Gets a single value from the current writeable texture. + /// Gets a single value from the current writeable texture. /// /// The horizontal offset of the value to get. /// The vertical 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 T this[int x, int y, int z] => throw new InvalidExecutionContextException($"{nameof(ReadWriteTexture3D)}[int,int,int]"); + public ref TPixel this[int x, int y, int z] => throw new InvalidExecutionContextException($"{nameof(ReadWriteTexture3D)}[int,int,int]"); /// - /// Gets a single value from the current writeable texture. + /// Gets a single value from the current writeable texture. /// /// 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[Int3 xyz] => throw new InvalidExecutionContextException($"{nameof(ReadWriteTexture3D)}[Int3]"); + public ref TPixel this[Int3 xyz] => throw new InvalidExecutionContextException($"{nameof(ReadWriteTexture3D)}[Int3]"); /// public override string ToString()