/ src / Ryujinx.Graphics.GAL / Multithreading / Commands / SetAlphaTestCommand.cs
SetAlphaTestCommand.cs
 1  namespace Ryujinx.Graphics.GAL.Multithreading.Commands
 2  {
 3      struct SetAlphaTestCommand : IGALCommand, IGALCommand<SetAlphaTestCommand>
 4      {
 5          public readonly CommandType CommandType => CommandType.SetAlphaTest;
 6          private bool _enable;
 7          private float _reference;
 8          private CompareOp _op;
 9  
10          public void Set(bool enable, float reference, CompareOp op)
11          {
12              _enable = enable;
13              _reference = reference;
14              _op = op;
15          }
16  
17          public static void Run(ref SetAlphaTestCommand command, ThreadedRenderer threaded, IRenderer renderer)
18          {
19              renderer.Pipeline.SetAlphaTest(command._enable, command._reference, command._op);
20          }
21      }
22  }