ClearRenderTargetDepthStencilCommand.cs 924 B

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