mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-17 16:37:04 +00:00
misc: chore: Use collection expressions (part 2)
This commit is contained in:
parent
c923c0043a
commit
340ec79e9f
176 changed files with 308 additions and 308 deletions
|
|
@ -12,7 +12,7 @@ namespace Ryujinx.Graphics.OpenGL.Image
|
|||
public IntermediatePool(OpenGLRenderer renderer)
|
||||
{
|
||||
_renderer = renderer;
|
||||
_entries = new List<TextureView>();
|
||||
_entries = [];
|
||||
}
|
||||
|
||||
public TextureView GetOrCreateWithAtLeast(
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
{
|
||||
if (!_textures.TryGetValue(view.Info, out List<DisposedTexture> list))
|
||||
{
|
||||
list = new List<DisposedTexture>();
|
||||
list = [];
|
||||
_textures.Add(view.Info, list);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
private ulong _firstHandle = 0;
|
||||
private static ClientWaitSyncFlags SyncFlags => HwCapabilities.RequiresSyncFlush ? ClientWaitSyncFlags.None : ClientWaitSyncFlags.SyncFlushCommandsBit;
|
||||
|
||||
private readonly List<SyncHandle> _handles = new();
|
||||
private readonly List<SyncHandle> _handles = [];
|
||||
|
||||
public void Create(ulong id)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue