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