mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-04 02:02:25 -07:00
SetStencilTest
This commit is contained in:
committed by
Isaac Marovitz
parent
628772f685
commit
0f52165e86
@@ -11,6 +11,7 @@ namespace Ryujinx.Graphics.Metal
|
||||
public PrimitiveTopology Topology = PrimitiveTopology.Triangles;
|
||||
public MTLCullMode CullMode = MTLCullMode.None;
|
||||
public MTLWinding Winding = MTLWinding.Clockwise;
|
||||
public MTLDepthStencilState DepthStencilState = null;
|
||||
|
||||
public RenderEncoderState(MTLRenderPipelineState renderPipelineState)
|
||||
{
|
||||
@@ -22,6 +23,7 @@ namespace Ryujinx.Graphics.Metal
|
||||
renderCommandEncoder.SetRenderPipelineState(RenderPipelineState);
|
||||
renderCommandEncoder.SetCullMode(CullMode);
|
||||
renderCommandEncoder.SetFrontFacingWinding(Winding);
|
||||
renderCommandEncoder.SetDepthStencilState(DepthStencilState);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user