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