using System.Diagnostics;
namespace ComputeSharp.Resources.Views
{
///
/// A debug proxy used to display items in a instance.
///
/// The type of items to display.
internal sealed class TransferTexture2DDebugView
where T : unmanaged
{
///
/// Initializes a new instance of the class with the specified parameters.
///
/// The input instance with the items to display.
public TransferTexture2DDebugView(TransferTexture2D? texture)
{
Items = texture?.Span.ToArray();
}
///
/// Gets the items to display for the current instance.
///
[DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
public T[,]? Items { get; }
}
}