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