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