From 3d9e1899c75de8578f818e60d8585bd744a54a10 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 6 Dec 2020 22:59:58 +0100 Subject: [PATCH] Renamed resource debug view types --- src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture2D{T}.cs | 2 +- src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture3D{T}.cs | 2 +- src/ComputeSharp.Graphics/Buffers/ReadWriteTexture2D{T}.cs | 2 +- src/ComputeSharp.Graphics/Buffers/ReadWriteTexture3D{T}.cs | 2 +- .../{BufferDebugView2D{T}.cs => Texture2DDebugView{T}.cs} | 6 +++--- .../{BufferDebugView3D{T}.cs => Texture3DDebugView{T}.cs} | 6 +++--- 6 files changed, 10 insertions(+), 10 deletions(-) rename src/ComputeSharp.Graphics/Buffers/Views/{BufferDebugView2D{T}.cs => Texture2DDebugView{T}.cs} (81%) rename src/ComputeSharp.Graphics/Buffers/Views/{BufferDebugView3D{T}.cs => Texture3DDebugView{T}.cs} (82%) diff --git a/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture2D{T}.cs b/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture2D{T}.cs index 2c7c9130..6928d322 100644 --- a/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture2D{T}.cs +++ b/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture2D{T}.cs @@ -11,7 +11,7 @@ namespace ComputeSharp /// A representing a typed readonly 2D texture stored on GPU memory. /// /// The type of items stored on the texture. - [DebuggerTypeProxy(typeof(BufferDebugView2D<>))] + [DebuggerTypeProxy(typeof(Texture2DDebugView<>))] [DebuggerDisplay("{ToString(),raw}")] public sealed class ReadOnlyTexture2D : Texture2D where T : unmanaged diff --git a/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture3D{T}.cs b/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture3D{T}.cs index 11ee7869..2d17d352 100644 --- a/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture3D{T}.cs +++ b/src/ComputeSharp.Graphics/Buffers/ReadOnlyTexture3D{T}.cs @@ -11,7 +11,7 @@ namespace ComputeSharp /// A representing a typed readonly 3D texture stored on GPU memory. /// /// The type of items stored on the texture. - [DebuggerTypeProxy(typeof(BufferDebugView3D<>))] + [DebuggerTypeProxy(typeof(Texture3DDebugView<>))] [DebuggerDisplay("{ToString(),raw}")] public sealed class ReadOnlyTexture3D : Texture3D where T : unmanaged diff --git a/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture2D{T}.cs b/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture2D{T}.cs index 779bba67..9ff4aae9 100644 --- a/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture2D{T}.cs +++ b/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture2D{T}.cs @@ -11,7 +11,7 @@ namespace ComputeSharp /// A representing a typed read write 2D texture stored on GPU memory. /// /// The type of items stored on the texture. - [DebuggerTypeProxy(typeof(BufferDebugView2D<>))] + [DebuggerTypeProxy(typeof(Texture2DDebugView<>))] [DebuggerDisplay("{ToString(),raw}")] public sealed class ReadWriteTexture2D : Texture2D where T : unmanaged diff --git a/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture3D{T}.cs b/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture3D{T}.cs index b4a341d3..bb335285 100644 --- a/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture3D{T}.cs +++ b/src/ComputeSharp.Graphics/Buffers/ReadWriteTexture3D{T}.cs @@ -11,7 +11,7 @@ namespace ComputeSharp /// A representing a typed readonly 3D texture stored on GPU memory. /// /// The type of items stored on the texture. - [DebuggerTypeProxy(typeof(BufferDebugView3D<>))] + [DebuggerTypeProxy(typeof(Texture3DDebugView<>))] [DebuggerDisplay("{ToString(),raw}")] public sealed class ReadWriteTexture3D : Texture3D where T : unmanaged diff --git a/src/ComputeSharp.Graphics/Buffers/Views/BufferDebugView2D{T}.cs b/src/ComputeSharp.Graphics/Buffers/Views/Texture2DDebugView{T}.cs similarity index 81% rename from src/ComputeSharp.Graphics/Buffers/Views/BufferDebugView2D{T}.cs rename to src/ComputeSharp.Graphics/Buffers/Views/Texture2DDebugView{T}.cs index 6acf3c20..def44462 100644 --- a/src/ComputeSharp.Graphics/Buffers/Views/BufferDebugView2D{T}.cs +++ b/src/ComputeSharp.Graphics/Buffers/Views/Texture2DDebugView{T}.cs @@ -7,14 +7,14 @@ namespace ComputeSharp.Graphics.Buffers.Views /// A debug proxy used to display items in a instance. /// /// The type of items to display. - internal sealed class BufferDebugView2D + internal sealed class Texture2DDebugView where T : unmanaged { /// - /// Initializes a new instance of the class with the specified parameters. + /// Initializes a new instance of the class with the specified parameters. /// /// The input instance with the items to display. - public BufferDebugView2D(Texture2D? texture) + public Texture2DDebugView(Texture2D? texture) { if (texture is not null) { diff --git a/src/ComputeSharp.Graphics/Buffers/Views/BufferDebugView3D{T}.cs b/src/ComputeSharp.Graphics/Buffers/Views/Texture3DDebugView{T}.cs similarity index 82% rename from src/ComputeSharp.Graphics/Buffers/Views/BufferDebugView3D{T}.cs rename to src/ComputeSharp.Graphics/Buffers/Views/Texture3DDebugView{T}.cs index 24e2a4a5..d4e43269 100644 --- a/src/ComputeSharp.Graphics/Buffers/Views/BufferDebugView3D{T}.cs +++ b/src/ComputeSharp.Graphics/Buffers/Views/Texture3DDebugView{T}.cs @@ -7,14 +7,14 @@ namespace ComputeSharp.Graphics.Buffers.Views /// A debug proxy used to display items in a instance. /// /// The type of items to display. - internal sealed class BufferDebugView3D + internal sealed class Texture3DDebugView where T : unmanaged { /// - /// Initializes a new instance of the class with the specified parameters. + /// Initializes a new instance of the class with the specified parameters. /// /// The input instance with the items to display. - public BufferDebugView3D(Texture3D? texture) + public Texture3DDebugView(Texture3D? texture) { if (texture is not null) {