Depth Clear

This commit is contained in:
Isaac Marovitz
2024-05-22 20:26:54 -04:00
committed by Evan Husted
parent 90e3899c23
commit 7f8d54d6dc
5 changed files with 54 additions and 68 deletions

View File

@@ -215,7 +215,11 @@ namespace Ryujinx.Graphics.Metal
public void ClearRenderTargetDepthStencil(int layer, int layerCount, float depthValue, bool depthMask, int stencilValue, int stencilMask)
{
Logger.Warning?.Print(LogClass.Gpu, "Not Implemented!");
Texture target = _encoderStateManager.DepthStencil;
_encoderStateManager.SwapStates();
_helperShader.ClearDepthStencil(target, [depthValue], depthMask, stencilValue, stencilMask);
}
public void CommandBufferBarrier()