misc: chore: Use collection expressions in Gpu project

This commit is contained in:
Evan Husted
2025-01-26 15:49:22 -06:00
parent ae90db2040
commit aa0cb50c5d
41 changed files with 365 additions and 304 deletions

View File

@@ -549,7 +549,7 @@ namespace Ryujinx.Graphics.Gpu.Image
_channel = channel;
_cacheFromBuffer = new Dictionary<CacheEntryFromBufferKey, CacheEntryFromBuffer>();
_cacheFromPool = new Dictionary<CacheEntryFromPoolKey, CacheEntry>();
_lruCache = new LinkedList<CacheEntryFromBuffer>();
_lruCache = [];
}
/// <summary>
@@ -1116,7 +1116,7 @@ namespace Ryujinx.Graphics.Gpu.Image
{
if (key.MatchesPool(pool))
{
(keysToRemove ??= new()).Add(key);
(keysToRemove ??= []).Add(key);
if (key.IsImage)
{