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