ClearRenderTargetDepthStencilCommand.cs 1007 B

1234567891011121314151617181920212223242526
  1. namespace Ryujinx.Graphics.GAL.Multithreading.Commands
  2. {
  3. struct ClearRenderTargetDepthStencilCommand : IGALCommand
  4. {
  5. public CommandType CommandType => CommandType.ClearRenderTargetDepthStencil;
  6. private int _layer;
  7. private float _depthValue;
  8. private bool _depthMask;
  9. private int _stencilValue;
  10. private int _stencilMask;
  11. public void Set(int layer, float depthValue, bool depthMask, int stencilValue, int stencilMask)
  12. {
  13. _layer = layer;
  14. _depthValue = depthValue;
  15. _depthMask = depthMask;
  16. _stencilValue = stencilValue;
  17. _stencilMask = stencilMask;
  18. }
  19. public static void Run(ref ClearRenderTargetDepthStencilCommand command, ThreadedRenderer threaded, IRenderer renderer)
  20. {
  21. renderer.Pipeline.ClearRenderTargetDepthStencil(command._layer, command._depthValue, command._depthMask, command._stencilValue, command._stencilMask);
  22. }
  23. }
  24. }