mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-29 10:56:24 +02:00
misc: chore: Use collection expressions in Vulkan project
This commit is contained in:
parent
9cb3b40ffc
commit
ed2590a8ac
32 changed files with 212 additions and 240 deletions
|
@ -249,7 +249,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
{
|
||||
if (entry.DependencyList == null)
|
||||
{
|
||||
entry.DependencyList = new List<Dependency>();
|
||||
entry.DependencyList = [];
|
||||
entries[i] = entry;
|
||||
}
|
||||
|
||||
|
@ -340,7 +340,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
DestroyEntry(entry);
|
||||
}
|
||||
|
||||
(toRemove ??= new List<ulong>()).Add(range.Key);
|
||||
(toRemove ??= []).Add(range.Key);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -362,7 +362,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
if (!_ranges.TryGetValue(key, out List<Entry> value))
|
||||
{
|
||||
value = new List<Entry>();
|
||||
value = [];
|
||||
_ranges.Add(key, value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue