ClearRenderTargetColorCommand.cs 745 B

12345678910111213141516171819202122
  1. namespace Ryujinx.Graphics.GAL.Multithreading.Commands
  2. {
  3. struct ClearRenderTargetColorCommand : IGALCommand
  4. {
  5. public CommandType CommandType => CommandType.ClearRenderTargetColor;
  6. private int _index;
  7. private uint _componentMask;
  8. private ColorF _color;
  9. public void Set(int index, uint componentMask, ColorF color)
  10. {
  11. _index = index;
  12. _componentMask = componentMask;
  13. _color = color;
  14. }
  15. public static void Run(ref ClearRenderTargetColorCommand command, ThreadedRenderer threaded, IRenderer renderer)
  16. {
  17. renderer.Pipeline.ClearRenderTargetColor(command._index, command._componentMask, command._color);
  18. }
  19. }
  20. }