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