Add GEqual Z-test option for pipeline backends

This commit is contained in:
Jack Andersen
2017-09-02 19:52:53 -10:00
parent 04ff1692d8
commit 18cbfd2865
5 changed files with 13 additions and 0 deletions

View File

@@ -720,6 +720,9 @@ class D3D12ShaderPipeline : public IShaderPipeline
case ZTest::Greater:
desc.DepthStencilState.DepthFunc = D3D12_COMPARISON_FUNC_LESS;
break;
case ZTest::GEqual:
desc.DepthStencilState.DepthFunc = D3D12_COMPARISON_FUNC_LESS_EQUAL;
break;
case ZTest::Equal:
desc.DepthStencilState.DepthFunc = D3D12_COMPARISON_FUNC_EQUAL;
break;