SetFrontFaceCommand.cs 523 B

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