Add debug view resource tests
このコミットが含まれているのは:
1 親
da90dd9157
コミット
21ae8a57bc
6ファイル変更
+336
-4
検索条件に一致するファイルはありません
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする