SetDepthTestCommand.cs 577 B

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