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