mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-14 18:36:40 +00:00
25 lines
924 B
C#
25 lines
924 B
C#
|
namespace Ryujinx.Graphics.GAL.Multithreading.Commands
|
|||
|
{
|
|||
|
struct ClearRenderTargetDepthStencilCommand : IGALCommand
|
|||
|
{
|
|||
|
public CommandType CommandType => CommandType.ClearRenderTargetDepthStencil;
|
|||
|
private float _depthValue;
|
|||
|
private bool _depthMask;
|
|||
|
private int _stencilValue;
|
|||
|
private int _stencilMask;
|
|||
|
|
|||
|
public void Set(float depthValue, bool depthMask, int stencilValue, int stencilMask)
|
|||
|
{
|
|||
|
_depthValue = depthValue;
|
|||
|
_depthMask = depthMask;
|
|||
|
_stencilValue = stencilValue;
|
|||
|
_stencilMask = stencilMask;
|
|||
|
}
|
|||
|
|
|||
|
public static void Run(ref ClearRenderTargetDepthStencilCommand command, ThreadedRenderer threaded, IRenderer renderer)
|
|||
|
{
|
|||
|
renderer.Pipeline.ClearRenderTargetDepthStencil(command._depthValue, command._depthMask, command._stencilValue, command._stencilMask);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|