mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-25 01:57:11 +02:00
misc: chore: Use collection expressions everywhere else (except VP9)
This commit is contained in:
parent
0f857400b6
commit
ac838aa81d
59 changed files with 3246 additions and 2452 deletions
|
@ -16,7 +16,7 @@ namespace Ryujinx.Graphics.GAL.Multithreading
|
|||
private ulong _bufferHandle = 0;
|
||||
|
||||
private readonly Dictionary<BufferHandle, BufferHandle> _bufferMap = new();
|
||||
private readonly HashSet<BufferHandle> _inFlight = new();
|
||||
private readonly HashSet<BufferHandle> _inFlight = [];
|
||||
private readonly AutoResetEvent _inFlightChanged = new(false);
|
||||
|
||||
internal BufferHandle CreateBufferHandle()
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace Ryujinx.Graphics.GAL.Multithreading.Resources
|
|||
_renderer = renderer;
|
||||
|
||||
_toCompile = new Queue<IProgramRequest>();
|
||||
_inProgress = new List<ThreadedProgram>();
|
||||
_inProgress = [];
|
||||
}
|
||||
|
||||
public void Add(IProgramRequest request)
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace Ryujinx.Graphics.GAL.Multithreading
|
|||
{
|
||||
class SyncMap : IDisposable
|
||||
{
|
||||
private readonly HashSet<ulong> _inFlight = new();
|
||||
private readonly HashSet<ulong> _inFlight = [];
|
||||
private readonly AutoResetEvent _inFlightChanged = new(false);
|
||||
|
||||
internal void CreateSyncHandle(ulong id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue