From b229b327b96a6910a5e8baf75eb8c93795c56dde Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Mon, 7 Dec 2020 02:50:37 +0100 Subject: [PATCH] Fixed ReadWriteTexture3D indexer --- src/ComputeSharp.Graphics/Buffers/ReadWriteTexture3D{T}.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture3D{T}.cs b/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture3D{T}.cs index bb335285..414c4854 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 T this[UInt3 xyz] => throw new InvalidExecutionContextException($"{nameof(ReadWriteTexture3D)}[UInt3]"); + public ref T this[UInt3 xyz] => throw new InvalidExecutionContextException($"{nameof(ReadWriteTexture3D)}[UInt3]"); /// public override string ToString()