SetAlphaTestCommand.cs 685 B

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