Use collection expressions in more places
このコミットが含まれているのは:
1 親
3e25eeb8b7
コミット
6eba10e18b
4ファイル変更
+4
-4
検索条件に一致するファイルはありません
@@ -365,7 +365,7 @@ internal static partial class HlslKnownTypes
|
||||
/// <returns>The same list as input, but in a valid HLSL declaration order.</returns>
|
||||
private static IEnumerable<INamedTypeSymbol> OrderByDependency(IEnumerable<INamedTypeSymbol> types, IReadOnlyCollection<INamedTypeSymbol> invalidTypes)
|
||||
{
|
||||
Queue<(INamedTypeSymbol Type, HashSet<INamedTypeSymbol> Fields)> queue = new();
|
||||
Queue<(INamedTypeSymbol Type, HashSet<INamedTypeSymbol> Fields)> queue = [];
|
||||
|
||||
// Build a mapping of type dependencies for all the captured types. A type depends on another
|
||||
// when the latter is a field in the first type. HLSL requires custom types to be declared in
|
||||
|
||||
@@ -20,7 +20,7 @@ internal sealed class DynamicCache<TKey, TValue>
|
||||
/// <summary>
|
||||
/// The backing <see cref="ConcurrentDictionary{TKey, TValue}"/> instance for the cache.
|
||||
/// </summary>
|
||||
private readonly ConcurrentDictionary<Entry, TValue> map = new();
|
||||
private readonly ConcurrentDictionary<Entry, TValue> map = [];
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="ConditionalWeakTable{TKey, TValue}"/> tracking dead entries to remove.
|
||||
|
||||
@@ -16,7 +16,7 @@ internal readonly unsafe struct ID3D12CommandListPool(D3D12_COMMAND_LIST_TYPE d3
|
||||
/// <summary>
|
||||
/// The queue of <see cref="D3D12CommandListBundle"/> items with the available command lists.
|
||||
/// </summary>
|
||||
private readonly Queue<D3D12CommandListBundle> d3D12CommandListBundleQueue = new();
|
||||
private readonly Queue<D3D12CommandListBundle> d3D12CommandListBundleQueue = [];
|
||||
|
||||
/// <summary>
|
||||
/// Rents a <see cref="ID3D12GraphicsCommandList"/> and <see cref="ID3D12CommandAllocator"/> pair.
|
||||
|
||||
@@ -228,7 +228,7 @@ unsafe partial class GraphicsDevice
|
||||
/// <summary>
|
||||
/// The shared <see cref="ConcurrentQueue{T}"/> holding the reusable <see cref="WaitForFenceValueTaskSource"/> instances.
|
||||
/// </summary>
|
||||
private static readonly ConcurrentQueue<WaitForFenceValueTaskSource> ValueTaskSourceQueue = new();
|
||||
private static readonly ConcurrentQueue<WaitForFenceValueTaskSource> ValueTaskSourceQueue = [];
|
||||
|
||||
/// <summary>
|
||||
/// The approximate count of currently enqueued instances in <see cref="ValueTaskSourceQueue"/>.
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする