mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-06 18:26:26 +02:00
misc: chore: Use collection expressions in Gpu project
This commit is contained in:
parent
ae90db2040
commit
aa0cb50c5d
41 changed files with 365 additions and 304 deletions
|
@ -63,8 +63,8 @@ namespace Ryujinx.Graphics.Gpu.Shader
|
|||
|
||||
for (int index = 0; index < totalSets; index++)
|
||||
{
|
||||
_resourceDescriptors[index] = new();
|
||||
_resourceUsages[index] = new();
|
||||
_resourceDescriptors[index] = [];
|
||||
_resourceUsages[index] = [];
|
||||
}
|
||||
|
||||
AddDescriptor(SupportBufferStages, ResourceType.UniformBuffer, uniformSetIndex, 0, 1);
|
||||
|
@ -302,7 +302,7 @@ namespace Ryujinx.Graphics.Gpu.Shader
|
|||
|
||||
for (int index = oldLength; index <= setIndex; index++)
|
||||
{
|
||||
_resourceDescriptors[index] = new();
|
||||
_resourceDescriptors[index] = [];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -323,7 +323,7 @@ namespace Ryujinx.Graphics.Gpu.Shader
|
|||
|
||||
for (int index = oldLength; index <= setIndex; index++)
|
||||
{
|
||||
_resourceUsages[index] = new();
|
||||
_resourceUsages[index] = [];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue