diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-12-01 07:15:55 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-12-01 07:15:55 +0000 |
| commit | 82d59de0d193554e1231b06347078d41ed8ec8d3 (patch) | |
| tree | b4d723394dd870f4e7a3201e3e804c88ff4aad7f /Tests/TestApp/src/TestDepthStencilState.cpp | |
| parent | Updated submodules (added DRAW_FLAG_VERIFY_STATES & DISPATCH_FLAG_VERIFY_STAT... (diff) | |
| download | DiligentEngine-82d59de0d193554e1231b06347078d41ed8ec8d3.tar.gz DiligentEngine-82d59de0d193554e1231b06347078d41ed8ec8d3.zip | |
Improved thread safety of enum flags; added explicit state transitions to SetRenderTargets()
Diffstat (limited to 'Tests/TestApp/src/TestDepthStencilState.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestDepthStencilState.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/TestApp/src/TestDepthStencilState.cpp b/Tests/TestApp/src/TestDepthStencilState.cpp index f8fbef1..52e491a 100644 --- a/Tests/TestApp/src/TestDepthStencilState.cpp +++ b/Tests/TestApp/src/TestDepthStencilState.cpp @@ -35,6 +35,11 @@ void TestDepthStencilState::CreateTestDSS( DepthStencilStateDesc &DSSDesc ) RefCntAutoPtr<IPipelineState> pPSO; m_pDevice->CreatePipelineState( m_PSODesc, &pPSO ); m_pDeviceContext->SetPipelineState( pPSO ); + + RefCntAutoPtr<IShaderResourceBinding> pSRB; + pPSO->CreateShaderResourceBinding(&pSRB); + auto PSVarCount = pSRB->GetVariableCount(SHADER_TYPE_PIXEL); + auto VSVarCount = pSRB->GetVariableCount(SHADER_TYPE_VERTEX); #if 0 DSSDesc.Name = "TestDSS2"; m_pDevice->CreateDepthStencilState( DSSDesc, &pDSState2 ); |
