SetLogicOpStateCommand.cs 627 B

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