From 82d59de0d193554e1231b06347078d41ed8ec8d3 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 30 Nov 2018 23:15:55 -0800 Subject: Improved thread safety of enum flags; added explicit state transitions to SetRenderTargets() --- Tests/TestApp/src/TestDepthStencilState.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Tests/TestApp/src/TestDepthStencilState.cpp') 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 pPSO; m_pDevice->CreatePipelineState( m_PSODesc, &pPSO ); m_pDeviceContext->SetPipelineState( pPSO ); + + RefCntAutoPtr 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 ); -- cgit v1.2.3