/ src / Ryujinx.Graphics.GAL / Multithreading / Commands / SetRasterizerDiscardCommand.cs
SetRasterizerDiscardCommand.cs
 1  namespace Ryujinx.Graphics.GAL.Multithreading.Commands
 2  {
 3      struct SetRasterizerDiscardCommand : IGALCommand, IGALCommand<SetRasterizerDiscardCommand>
 4      {
 5          public readonly CommandType CommandType => CommandType.SetRasterizerDiscard;
 6          private bool _discard;
 7  
 8          public void Set(bool discard)
 9          {
10              _discard = discard;
11          }
12  
13          public static void Run(ref SetRasterizerDiscardCommand command, ThreadedRenderer threaded, IRenderer renderer)
14          {
15              renderer.Pipeline.SetRasterizerDiscard(command._discard);
16          }
17      }
18  }