mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-23 22:30:06 +02:00
misc: chore: Use collection expressions (part 2)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user