mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-11-20 01:10:54 -05:00
SetStencilTest
This commit is contained in:
committed by
Evan Husted
parent
cc3c7901b6
commit
dc60b76748
@@ -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