Use collection expressions for empty arrays and spans

このコミットが含まれているのは:
Sergio Pedri committed 2023-11-20 23:06:22 +01:00
1 親 6d560f08e2
コミット c9a5882f43
11ファイル変更
+18 -21

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

@@ -244,7 +244,7 @@ partial class PixelShaderEffect<T>
// Skip the array allocation if there are no resource texture descriptions
if (descriptions.IsEmpty)
{
return ImmutableArray<int>.Empty;
return [];
}
int[] indices = new int[descriptions.Length];