using System.Diagnostics; using ComputeSharp.Graphics.Buffers.Abstract; namespace ComputeSharp.Graphics.Buffers.Views { /// /// A debug proxy used to display items in a instance. /// /// The type of items to display. internal sealed class BufferDebugView where T : unmanaged { /// /// Initializes a new instance of the class with the specified parameters. /// /// The input instance with the items to display. public BufferDebugView(Buffer? buffer) { Items = buffer?.GetData(); } /// /// Gets the items to display for the current instance /// [DebuggerBrowsable(DebuggerBrowsableState.Collapsed)] public T[]? Items { get; } } }