/ src / Ryujinx.Graphics.GAL / Multithreading / Commands / CounterEvent / CounterEventDisposeCommand.cs
CounterEventDisposeCommand.cs
 1  using Ryujinx.Graphics.GAL.Multithreading.Model;
 2  using Ryujinx.Graphics.GAL.Multithreading.Resources;
 3  
 4  namespace Ryujinx.Graphics.GAL.Multithreading.Commands.CounterEvent
 5  {
 6      struct CounterEventDisposeCommand : IGALCommand, IGALCommand<CounterEventDisposeCommand>
 7      {
 8          public readonly CommandType CommandType => CommandType.CounterEventDispose;
 9          private TableRef<ThreadedCounterEvent> _event;
10  
11          public void Set(TableRef<ThreadedCounterEvent> evt)
12          {
13              _event = evt;
14          }
15  
16          public static void Run(ref CounterEventDisposeCommand command, ThreadedRenderer threaded, IRenderer renderer)
17          {
18              command._event.Get(threaded).Base.Dispose();
19          }
20      }
21  }