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