misc: chore: Use collection expressions

This commit is contained in:
KeatonTheBot
2025-03-06 20:46:29 -06:00
parent 4d5757417e
commit e2973a875a
236 changed files with 9843 additions and 7561 deletions
@@ -1315,7 +1315,7 @@ namespace Ryujinx.Graphics.Gpu.Image
if (_isBuffer)
{
handles = Array.Empty<TextureGroupHandle>();
handles = [];
}
else if (!(_hasMipViews || _hasLayerViews))
{
@@ -1339,7 +1339,7 @@ namespace Ryujinx.Graphics.Gpu.Image
var groupHandle = new TextureGroupHandle(this, 0, Storage.Size, _views, 0, 0, 0, _allOffsets.Length, cpuRegionHandles);
handles = new TextureGroupHandle[] { groupHandle };
handles = [groupHandle];
}
else
{