Add debug view resource tests

このコミットが含まれているのは:
Sergio Pedri committed 2021-11-13 16:18:33 +01:00
1 親 da90dd9157
コミット 21ae8a57bc
6ファイル変更
+336 -4

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

+1 -1
ファイルの表示
@@ -18,7 +18,7 @@ internal sealed class BufferDebugView<T>
{
if (buffer is not null)
{
var items = GC.AllocateUninitializedArray<T>(buffer.Length);
T[] items = GC.AllocateUninitializedArray<T>(buffer.Length);
buffer.CopyTo(ref items[0], 0, buffer.Length);
+1 -1
ファイルの表示
@@ -17,7 +17,7 @@ internal sealed class Texture2DDebugView<T>
{
if (texture is not null)
{
var items = new T[texture.Height, texture.Width];
T[,] items = new T[texture.Height, texture.Width];
texture.CopyTo(ref items[0, 0], items.Length, 0, 0, texture.Width, texture.Height);
+1 -1
ファイルの表示
@@ -17,7 +17,7 @@ internal sealed class Texture3DDebugView<T>
{
if (texture is not null)
{
var items = new T[texture.Depth, texture.Height, texture.Width];
T[,,] items = new T[texture.Depth, texture.Height, texture.Width];
texture.CopyTo(ref items[0, 0, 0], items.Length, 0, 0, 0, texture.Width, texture.Height, texture.Depth);
+1 -1
ファイルの表示
@@ -18,7 +18,7 @@ internal sealed class TransferBufferDebugView<T>
{
if (buffer is not null)
{
var items = GC.AllocateUninitializedArray<T>(buffer.Length);
T[] items = GC.AllocateUninitializedArray<T>(buffer.Length);
buffer.Span.CopyTo(items);