Added DepthStencilState

This commit is contained in:
Simon Lübeß
2022-01-01 19:34:59 +01:00
parent 664ba552ea
commit b2ce560bfc
5 changed files with 170 additions and 0 deletions
@@ -87,6 +87,14 @@ namespace GlitchyEngine.Renderer
SetReference!(_currentBlendState, blendState);
NativeContext.OutputMerger.SetBlendState(_currentBlendState.nativeBlendState, blendFactor);
}
private DepthStencilState _currentDepthStencilState ~ _?.ReleaseRef();
public override void SetDepthStencilState(DepthStencilState depthStencilState, uint8 stencilReference)
{
SetReference!(_currentDepthStencilState, depthStencilState);
NativeContext.OutputMerger.SetDepthStencilState(_currentDepthStencilState.nativeDepthStencilState, stencilReference);
}
public override void DrawIndexed(GeometryBinding geometry)
{