Improved Buffer<T> unit tests, minor bug fixes
このコミットが含まれているのは:
1 親
48a717f596
コミット
2db612a7c6
3ファイル変更
+221
-99
検索条件に一致するファイルはありません
@@ -114,6 +114,8 @@ namespace ComputeSharp.Graphics.Buffers.Abstract
|
||||
[Pure]
|
||||
public T[] GetData(int offset, int count)
|
||||
{
|
||||
Guard.IsGreaterThanOrEqualTo(count, 0, nameof(count));
|
||||
|
||||
T[] data = GC.AllocateUninitializedArray<T>(count);
|
||||
|
||||
GetData(data.AsSpan(), offset);
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする