SetRasterizerDiscardCommand.cs 577 B

123456789101112131415161718
  1. namespace Ryujinx.Graphics.GAL.Multithreading.Commands
  2. {
  3. struct SetRasterizerDiscardCommand : IGALCommand, IGALCommand<SetRasterizerDiscardCommand>
  4. {
  5. public CommandType CommandType => CommandType.SetRasterizerDiscard;
  6. private bool _discard;
  7. public void Set(bool discard)
  8. {
  9. _discard = discard;
  10. }
  11. public static void Run(ref SetRasterizerDiscardCommand command, ThreadedRenderer threaded, IRenderer renderer)
  12. {
  13. renderer.Pipeline.SetRasterizerDiscard(command._discard);
  14. }
  15. }
  16. }