/ src / Ryujinx.Graphics.GAL / Multithreading / Commands / DrawIndexedCommand.cs
DrawIndexedCommand.cs
 1  namespace Ryujinx.Graphics.GAL.Multithreading.Commands
 2  {
 3      struct DrawCommand : IGALCommand, IGALCommand<DrawCommand>
 4      {
 5          public readonly CommandType CommandType => CommandType.Draw;
 6          private int _vertexCount;
 7          private int _instanceCount;
 8          private int _firstVertex;
 9          private int _firstInstance;
10  
11          public void Set(int vertexCount, int instanceCount, int firstVertex, int firstInstance)
12          {
13              _vertexCount = vertexCount;
14              _instanceCount = instanceCount;
15              _firstVertex = firstVertex;
16              _firstInstance = firstInstance;
17          }
18  
19          public static void Run(ref DrawCommand command, ThreadedRenderer threaded, IRenderer renderer)
20          {
21              renderer.Pipeline.Draw(command._vertexCount, command._instanceCount, command._firstVertex, command._firstInstance);
22          }
23      }
24  }