Added BufferDebugView3D<T> type, minor bug fixes

このコミットが含まれているのは:
Sergio Pedri committed 2020-12-06 22:58:03 +01:00
1 親 9806d02279
コミット d557d7264e
4ファイル変更
+41 -2

検索条件に一致するファイルはありません

+3 -1
ファイルの表示
@@ -3,6 +3,7 @@ using ComputeSharp.Exceptions;
using ComputeSharp.Graphics;
using ComputeSharp.Graphics.Buffers.Abstract;
using ComputeSharp.Graphics.Buffers.Enums;
using ComputeSharp.Graphics.Buffers.Views;
namespace ComputeSharp
{
@@ -10,6 +11,7 @@ namespace ComputeSharp
/// A <see langword="class"/> representing a typed readonly 3D texture stored on GPU memory.
/// </summary>
/// <typeparam name="T">The type of items stored on the texture.</typeparam>
[DebuggerTypeProxy(typeof(BufferDebugView3D<>))]
[DebuggerDisplay("{ToString(),raw}")]
public sealed class ReadWriteTexture3D<T> : Texture3D<T>
where T : unmanaged
@@ -36,7 +38,7 @@ namespace ComputeSharp
/// <inheritdoc/>
public override string ToString()
{
return $"ComputeSharp.ReadOnlyTexture3D<{typeof(T)}>[{Width}, {Height}, {Depth}]";
return $"ComputeSharp.ReadWriteTexture3D<{typeof(T)}>[{Width}, {Height}, {Depth}]";
}
}
}