mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-08 01:18:58 +02:00
misc: chore: Use collection expressions (part 2)
This commit is contained in:
@@ -60,8 +60,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);
|
||||
@@ -280,7 +280,7 @@ namespace Ryujinx.Graphics.Gpu.Shader
|
||||
|
||||
for (int index = oldLength; index <= setIndex; index++)
|
||||
{
|
||||
_resourceDescriptors[index] = new();
|
||||
_resourceDescriptors[index] = [];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -301,7 +301,7 @@ namespace Ryujinx.Graphics.Gpu.Shader
|
||||
|
||||
for (int index = oldLength; index <= setIndex; index++)
|
||||
{
|
||||
_resourceUsages[index] = new();
|
||||
_resourceUsages[index] = [];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user