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