aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/Multithreading/Commands/SetPrimitiveRestartCommand.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.GAL/Multithreading/Commands/SetPrimitiveRestartCommand.cs')
-rw-r--r--Ryujinx.Graphics.GAL/Multithreading/Commands/SetPrimitiveRestartCommand.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.GAL/Multithreading/Commands/SetPrimitiveRestartCommand.cs b/Ryujinx.Graphics.GAL/Multithreading/Commands/SetPrimitiveRestartCommand.cs
new file mode 100644
index 00000000..e5f6ecf3
--- /dev/null
+++ b/Ryujinx.Graphics.GAL/Multithreading/Commands/SetPrimitiveRestartCommand.cs
@@ -0,0 +1,20 @@
+namespace Ryujinx.Graphics.GAL.Multithreading.Commands
+{
+ struct SetPrimitiveRestartCommand : IGALCommand
+ {
+ public CommandType CommandType => CommandType.SetPrimitiveRestart;
+ private bool _enable;
+ private int _index;
+
+ public void Set(bool enable, int index)
+ {
+ _enable = enable;
+ _index = index;
+ }
+
+ public static void Run(ref SetPrimitiveRestartCommand command, ThreadedRenderer threaded, IRenderer renderer)
+ {
+ renderer.Pipeline.SetPrimitiveRestart(command._enable, command._index);
+ }
+ }
+}