Add missing TransferTexture3DDebugView<T> type

このコミットが含まれているのは:
Sergio Pedri committed 2021-02-05 19:47:15 +01:00
1 親 c58f1e13da
コミット 659b841784
2ファイル変更
+30

検索条件に一致するファイルはありません

+3
ファイルの表示
@@ -24,6 +24,9 @@ bld/
[Oo]bj/
[Ll]og/
# Debug view types
!**/Resources/Debug
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
+27
ファイルの表示
@@ -0,0 +1,27 @@
using System.Diagnostics;
namespace ComputeSharp.Resources.Debug
{
/// <summary>
/// A debug proxy used to display items in a <see cref="TransferTexture3D{T}"/> instance.
/// </summary>
/// <typeparam name="T">The type of items to display.</typeparam>
internal sealed class TransferTexture3DDebugView<T>
where T : unmanaged
{
/// <summary>
/// Initializes a new instance of the <see cref="TransferTexture3DDebugView{T}"/> class with the specified parameters.
/// </summary>
/// <param name="texture">The input <see cref="TransferTexture3D{T}"/> instance with the items to display.</param>
public TransferTexture3DDebugView(TransferTexture3D<T>? texture)
{
Items = texture?.View.ToArray();
}
/// <summary>
/// Gets the items to display for the current instance.
/// </summary>
[DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
public T[,,]? Items { get; }
}
}