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 BufferDebugView2D
where T : unmanaged
{
///
/// Initializes a new instance of the class with the specified parameters.
///
/// The input instance with the items to display.
public BufferDebugView2D(Texture2D? texture)
{
Items = texture?.GetData();
}
///
/// Gets the items to display for the current instance.
///
[DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
public T[,]? Items { get; }
}
}