Fix stencil clears
This commit is contained in:
parent
05189c7749
commit
a264d9273d
2 changed files with 1 additions and 4 deletions
|
@ -309,7 +309,7 @@ namespace Ryujinx.Graphics.Metal
|
|||
// Save current state
|
||||
_pipeline.SaveState();
|
||||
|
||||
const int ClearDepthBufferSize = 4;
|
||||
const int ClearDepthBufferSize = 16;
|
||||
|
||||
using var buffer = _renderer.BufferManager.ReserveOrCreate(_pipeline.Cbs, ClearDepthBufferSize);
|
||||
buffer.Holder.SetDataUnchecked(buffer.Offset, new ReadOnlySpan<float>(ref depthValue));
|
||||
|
@ -328,7 +328,6 @@ namespace Ryujinx.Graphics.Metal
|
|||
|
||||
_pipeline.SetProgram(_programDepthStencilClear);
|
||||
_pipeline.SetFaceCulling(false, Face.Front);
|
||||
_pipeline.SetDepthTest(new DepthTestDescriptor(false, false, CompareOp.Always));
|
||||
_pipeline.SetPrimitiveTopology(PrimitiveTopology.TriangleStrip);
|
||||
_pipeline.SetViewports(viewports);
|
||||
_pipeline.SetDepthTest(new DepthTestDescriptor(true, depthMask, CompareOp.Always));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue