SetLineParametersCommand.cs 644 B

1234567891011121314151617181920
  1. namespace Ryujinx.Graphics.GAL.Multithreading.Commands
  2. {
  3. struct SetLineParametersCommand : IGALCommand, IGALCommand<SetLineParametersCommand>
  4. {
  5. public CommandType CommandType => CommandType.SetLineParameters;
  6. private float _width;
  7. private bool _smooth;
  8. public void Set(float width, bool smooth)
  9. {
  10. _width = width;
  11. _smooth = smooth;
  12. }
  13. public static void Run(ref SetLineParametersCommand command, ThreadedRenderer threaded, IRenderer renderer)
  14. {
  15. renderer.Pipeline.SetLineParameters(command._width, command._smooth);
  16. }
  17. }
  18. }