SetDepthModeCommand.cs
1 namespace Ryujinx.Graphics.GAL.Multithreading.Commands 2 { 3 struct SetDepthModeCommand : IGALCommand, IGALCommand<SetDepthModeCommand> 4 { 5 public readonly CommandType CommandType => CommandType.SetDepthMode; 6 private DepthMode _mode; 7 8 public void Set(DepthMode mode) 9 { 10 _mode = mode; 11 } 12 13 public static void Run(ref SetDepthModeCommand command, ThreadedRenderer threaded, IRenderer renderer) 14 { 15 renderer.Pipeline.SetDepthMode(command._mode); 16 } 17 } 18 }