Add missing TransferTexture3DDebugView<T> type
このコミットが含まれているのは:
1 親
c58f1e13da
コミット
659b841784
2ファイル変更
+30
検索条件に一致するファイルはありません
@@ -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; }
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする