diff options
Diffstat (limited to 'Ryujinx.Graphics.GAL/Multithreading/Commands')
-rw-r--r-- | Ryujinx.Graphics.GAL/Multithreading/Commands/ClearRenderTargetColorCommand.cs | 6 | ||||
-rw-r--r-- | Ryujinx.Graphics.GAL/Multithreading/Commands/ClearRenderTargetDepthStencilCommand.cs | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/Ryujinx.Graphics.GAL/Multithreading/Commands/ClearRenderTargetColorCommand.cs b/Ryujinx.Graphics.GAL/Multithreading/Commands/ClearRenderTargetColorCommand.cs index cde69e7b..00a5128a 100644 --- a/Ryujinx.Graphics.GAL/Multithreading/Commands/ClearRenderTargetColorCommand.cs +++ b/Ryujinx.Graphics.GAL/Multithreading/Commands/ClearRenderTargetColorCommand.cs @@ -5,20 +5,22 @@ public CommandType CommandType => CommandType.ClearRenderTargetColor; private int _index; private int _layer; + private int _layerCount; private uint _componentMask; private ColorF _color; - public void Set(int index, int layer, uint componentMask, ColorF color) + public void Set(int index, int layer, int layerCount, uint componentMask, ColorF color) { _index = index; _layer = layer; + _layerCount = layerCount; _componentMask = componentMask; _color = color; } public static void Run(ref ClearRenderTargetColorCommand command, ThreadedRenderer threaded, IRenderer renderer) { - renderer.Pipeline.ClearRenderTargetColor(command._index, command._layer, command._componentMask, command._color); + renderer.Pipeline.ClearRenderTargetColor(command._index, command._layer, command._layerCount, command._componentMask, command._color); } } } diff --git a/Ryujinx.Graphics.GAL/Multithreading/Commands/ClearRenderTargetDepthStencilCommand.cs b/Ryujinx.Graphics.GAL/Multithreading/Commands/ClearRenderTargetDepthStencilCommand.cs index c5c76539..c9ebad21 100644 --- a/Ryujinx.Graphics.GAL/Multithreading/Commands/ClearRenderTargetDepthStencilCommand.cs +++ b/Ryujinx.Graphics.GAL/Multithreading/Commands/ClearRenderTargetDepthStencilCommand.cs @@ -4,14 +4,16 @@ { public CommandType CommandType => CommandType.ClearRenderTargetDepthStencil; private int _layer; + private int _layerCount; private float _depthValue; private bool _depthMask; private int _stencilValue; private int _stencilMask; - public void Set(int layer, float depthValue, bool depthMask, int stencilValue, int stencilMask) + public void Set(int layer, int layerCount, float depthValue, bool depthMask, int stencilValue, int stencilMask) { _layer = layer; + _layerCount = layerCount; _depthValue = depthValue; _depthMask = depthMask; _stencilValue = stencilValue; @@ -20,7 +22,7 @@ public static void Run(ref ClearRenderTargetDepthStencilCommand command, ThreadedRenderer threaded, IRenderer renderer) { - renderer.Pipeline.ClearRenderTargetDepthStencil(command._layer, command._depthValue, command._depthMask, command._stencilValue, command._stencilMask); + renderer.Pipeline.ClearRenderTargetDepthStencil(command._layer, command._layerCount, command._depthValue, command._depthMask, command._stencilValue, command._stencilMask); } } } |