/ src / Ryujinx.Graphics.GAL / Multithreading / Commands / Renderer / GetCapabilitiesCommand.cs
GetCapabilitiesCommand.cs
 1  using Ryujinx.Graphics.GAL.Multithreading.Model;
 2  
 3  namespace Ryujinx.Graphics.GAL.Multithreading.Commands.Renderer
 4  {
 5      struct GetCapabilitiesCommand : IGALCommand, IGALCommand<GetCapabilitiesCommand>
 6      {
 7          public readonly CommandType CommandType => CommandType.GetCapabilities;
 8          private TableRef<ResultBox<Capabilities>> _result;
 9  
10          public void Set(TableRef<ResultBox<Capabilities>> result)
11          {
12              _result = result;
13          }
14  
15          public static void Run(ref GetCapabilitiesCommand command, ThreadedRenderer threaded, IRenderer renderer)
16          {
17              command._result.Get(threaded).Result = renderer.GetCapabilities();
18          }
19      }
20  }