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
|
@ -83,7 +83,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
for (int j = 0; j < _dsCache[i].Length; j++)
|
||||
{
|
||||
_dsCache[i][j] = new List<Auto<DescriptorSetCollection>>();
|
||||
_dsCache[i][j] = [];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -173,7 +173,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
{
|
||||
FreeCompletedManualDescriptorSets();
|
||||
|
||||
List<ManualDescriptorSetEntry> list = _manualDsCache[setIndex] ??= new();
|
||||
List<ManualDescriptorSetEntry> list = _manualDsCache[setIndex] ??= [];
|
||||
Span<ManualDescriptorSetEntry> span = CollectionsMarshal.AsSpan(list);
|
||||
|
||||
Queue<int> freeQueue = _freeManualDsCacheEntries[setIndex];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue