SetPrimitiveRestartCommand.cs
1 namespace Ryujinx.Graphics.GAL.Multithreading.Commands 2 { 3 struct SetPrimitiveRestartCommand : IGALCommand, IGALCommand<SetPrimitiveRestartCommand> 4 { 5 public readonly CommandType CommandType => CommandType.SetPrimitiveRestart; 6 private bool _enable; 7 private int _index; 8 9 public void Set(bool enable, int index) 10 { 11 _enable = enable; 12 _index = index; 13 } 14 15 public static void Run(ref SetPrimitiveRestartCommand command, ThreadedRenderer threaded, IRenderer renderer) 16 { 17 renderer.Pipeline.SetPrimitiveRestart(command._enable, command._index); 18 } 19 } 20 }