diff --git a/src/ComputeSharp.Graphics/GraphicsDevice.cs b/src/ComputeSharp.Graphics/GraphicsDevice.cs index c162150c..a74b2c31 100644 --- a/src/ComputeSharp.Graphics/GraphicsDevice.cs +++ b/src/ComputeSharp.Graphics/GraphicsDevice.cs @@ -1,4 +1,5 @@ -using System.Runtime.CompilerServices; +using System.Diagnostics; +using System.Runtime.CompilerServices; using ComputeSharp.Core.Extensions; using ComputeSharp.Core.Helpers; using ComputeSharp.Core.Interop; @@ -13,6 +14,7 @@ namespace ComputeSharp.Graphics /// /// A that represents a DX12.1-compatible GPU device that can be used to run compute shaders. /// + [DebuggerDisplay("{ToString(),raw}")] public sealed unsafe class GraphicsDevice : NativeObject { /// @@ -209,5 +211,11 @@ namespace ComputeSharp.Graphics this.copyCommandAllocatorPool.Dispose(); this.shaderResourceViewDescriptorAllocator.Dispose(); } + + /// + public override string ToString() + { + return $"[{Luid}] {Name}"; + } } }