aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/Multithreading/Commands/SetDepthBiasCommand.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.GAL/Multithreading/Commands/SetDepthBiasCommand.cs')
-rw-r--r--Ryujinx.Graphics.GAL/Multithreading/Commands/SetDepthBiasCommand.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.GAL/Multithreading/Commands/SetDepthBiasCommand.cs b/Ryujinx.Graphics.GAL/Multithreading/Commands/SetDepthBiasCommand.cs
new file mode 100644
index 00000000..352242a3
--- /dev/null
+++ b/Ryujinx.Graphics.GAL/Multithreading/Commands/SetDepthBiasCommand.cs
@@ -0,0 +1,24 @@
+namespace Ryujinx.Graphics.GAL.Multithreading.Commands
+{
+ struct SetDepthBiasCommand : IGALCommand
+ {
+ public CommandType CommandType => CommandType.SetDepthBias;
+ private PolygonModeMask _enables;
+ private float _factor;
+ private float _units;
+ private float _clamp;
+
+ public void Set(PolygonModeMask enables, float factor, float units, float clamp)
+ {
+ _enables = enables;
+ _factor = factor;
+ _units = units;
+ _clamp = clamp;
+ }
+
+ public static void Run(ref SetDepthBiasCommand command, ThreadedRenderer threaded, IRenderer renderer)
+ {
+ renderer.Pipeline.SetDepthBias(command._enables, command._factor, command._units, command._clamp);
+ }
+ }
+}