SetStencilTestCommand.cs 565 B

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