Use collection expressions in more places

このコミットが含まれているのは:
Sergio Pedri committed 2023-12-08 12:54:21 +01:00
1 親 95a1ecd5c4
コミット 058db06971
13ファイル変更
+33 -33

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

+3 -3
ファイルの表示
@@ -12,12 +12,12 @@ partial class HlslKnownTypes
/// <summary>
/// Gets the known HLSL dispatch types.
/// </summary>
public static IReadOnlyCollection<Type> HlslDispatchTypes { get; } = new[]
{
public static IReadOnlyCollection<Type> HlslDispatchTypes { get; } =
[
typeof(ThreadIds),
typeof(GroupIds),
typeof(GridIds)
};
];
/// <summary>
/// Checks whether or not a given type name matches a constant buffer type.