diff options
author | gdkchan <gab.dark.100@gmail.com> | 2022-06-14 13:30:39 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-14 13:30:39 -0300 |
commit | 851f56b08a0c3b420f91143b6c6c007b429174a8 (patch) | |
tree | d4f331d1de9f4715a22abdc9b1b90b5ce5a3b4ae /Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs | |
parent | b1bd6a50b5341f444ceb31bbb0fb64f685828d75 (diff) |
Support Array/3D depth-stencil render target, and single layer clears (#3400)1.1.147
* Support Array/3D depth-stencil render target, and single layer clears
* Alignment
Diffstat (limited to 'Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs')
-rw-r--r-- | Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs b/Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs index 010ee7e6..2a1f474a 100644 --- a/Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs +++ b/Ryujinx.Graphics.GAL/Multithreading/ThreadedPipeline.cs @@ -40,15 +40,15 @@ namespace Ryujinx.Graphics.GAL.Multithreading _renderer.QueueCommand(); } - public void ClearRenderTargetColor(int index, uint componentMask, ColorF color) + public void ClearRenderTargetColor(int index, int layer, uint componentMask, ColorF color) { - _renderer.New<ClearRenderTargetColorCommand>().Set(index, componentMask, color); + _renderer.New<ClearRenderTargetColorCommand>().Set(index, layer, componentMask, color); _renderer.QueueCommand(); } - public void ClearRenderTargetDepthStencil(float depthValue, bool depthMask, int stencilValue, int stencilMask) + public void ClearRenderTargetDepthStencil(int layer, float depthValue, bool depthMask, int stencilValue, int stencilMask) { - _renderer.New<ClearRenderTargetDepthStencilCommand>().Set(depthValue, depthMask, stencilValue, stencilMask); + _renderer.New<ClearRenderTargetDepthStencilCommand>().Set(layer, depthValue, depthMask, stencilValue, stencilMask); _renderer.QueueCommand(); } |