SetFaceCullingCommand.cs 622 B

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