Use collection expressions in more places
このコミットが含まれているのは:
1 親
95a1ecd5c4
コミット
058db06971
13ファイル変更
+33
-33
検索条件に一致するファイルはありません
@@ -183,7 +183,7 @@ public sealed partial class ComputeShaderDescriptorGenerator : IIncrementalGener
|
||||
item.Hierarchy.WriteSyntax(
|
||||
state: item,
|
||||
writer: writer,
|
||||
baseTypes: new[] { $"global::ComputeSharp.Descriptors.IComputeShaderDescriptor<{item.Hierarchy.Hierarchy[0].QualifiedName}>" },
|
||||
baseTypes: [$"global::ComputeSharp.Descriptors.IComputeShaderDescriptor<{item.Hierarchy.Hierarchy[0].QualifiedName}>"],
|
||||
memberCallbacks: declaredMembers.WrittenSpan);
|
||||
|
||||
// Append any additional types as well
|
||||
|
||||
@@ -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.
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする