Remove CommunityToolkit.Diagnostics from ComputeSharp package
このコミットが含まれているのは:
1 親
72338416c2
コミット
5a4fd9a4ce
19ファイル変更
+58
-46
検索条件に一致するファイルはありません
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using CommunityToolkit.Diagnostics;
|
||||
|
||||
namespace ComputeSharp.Sample;
|
||||
|
||||
@@ -19,12 +18,6 @@ internal static class Formatting
|
||||
/// <param name="name">The name of the matrix to print.</param>
|
||||
public static void PrintMatrix(float[] array, int width, int height, string name)
|
||||
{
|
||||
Guard.IsNotNull(array);
|
||||
Guard.IsGreaterThan(width, 0);
|
||||
Guard.IsGreaterThan(height, 0);
|
||||
Guard.IsEqualTo(array.Length, (long)width * height, nameof(array));
|
||||
Guard.IsNotNullOrEmpty(name);
|
||||
|
||||
int pad = 48 - name.Length;
|
||||
string title = $"{new string('=', pad / 2)} {name} {new string('=', (pad + 1) / 2)}";
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする