summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestDepthStencilState.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-09-15 22:11:07 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-09-15 22:11:07 +0000
commiteaffcce87c373d6c701f1463859659235023d58c (patch)
treeabc4c995e64dd177d130d1a7d2c0f44562ceef2f /Tests/TestApp/src/TestDepthStencilState.cpp
parentUpdated samples submodule (minor readme updates) (diff)
downloadDiligentEngine-eaffcce87c373d6c701f1463859659235023d58c.tar.gz
DiligentEngine-eaffcce87c373d6c701f1463859659235023d58c.zip
Fixed compiler warnings
Diffstat (limited to 'Tests/TestApp/src/TestDepthStencilState.cpp')
-rw-r--r--Tests/TestApp/src/TestDepthStencilState.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/Tests/TestApp/src/TestDepthStencilState.cpp b/Tests/TestApp/src/TestDepthStencilState.cpp
index 8ad006b..f8fbef1 100644
--- a/Tests/TestApp/src/TestDepthStencilState.cpp
+++ b/Tests/TestApp/src/TestDepthStencilState.cpp
@@ -134,22 +134,22 @@ TestDepthStencilState::TestDepthStencilState( IRenderDevice *pDevice, IDeviceCon
pScript->GetPipelineStateByName( "TestPSO", &pPSOFromScript);
//pScript->GetDepthStencilStateByName( "TestDSS2", &pDSStateFromScript2 );
//assert( pDSStateFromScript == pDSStateFromScript2 );
- const auto &DSSDesc = pPSOFromScript->GetDesc().GraphicsPipeline.DepthStencilDesc;
-
- assert( DSSDesc.DepthEnable == True );
- assert( DSSDesc.DepthWriteEnable == True );
- assert( DSSDesc.DepthFunc == COMPARISON_FUNC_LESS );
- assert( DSSDesc.StencilEnable == True );
- assert( DSSDesc.StencilReadMask == 0xF8 );
- assert( DSSDesc.StencilWriteMask == 0xF1 );
- assert( DSSDesc.FrontFace.StencilFailOp == STENCIL_OP_KEEP );
- assert( DSSDesc.FrontFace.StencilDepthFailOp == STENCIL_OP_ZERO );
- assert( DSSDesc.FrontFace.StencilPassOp == STENCIL_OP_REPLACE );
- assert( DSSDesc.FrontFace.StencilFunc == COMPARISON_FUNC_EQUAL );
- assert( DSSDesc.BackFace.StencilFailOp == STENCIL_OP_INCR_SAT );
- assert( DSSDesc.BackFace.StencilDepthFailOp == STENCIL_OP_DECR_SAT );
- assert( DSSDesc.BackFace.StencilPassOp == STENCIL_OP_INVERT );
- assert( DSSDesc.BackFace.StencilFunc == COMPARISON_FUNC_NOT_EQUAL );
+ const auto &DSSDesc2 = pPSOFromScript->GetDesc().GraphicsPipeline.DepthStencilDesc;
+
+ assert( DSSDesc2.DepthEnable == True );
+ assert( DSSDesc2.DepthWriteEnable == True );
+ assert( DSSDesc2.DepthFunc == COMPARISON_FUNC_LESS );
+ assert( DSSDesc2.StencilEnable == True );
+ assert( DSSDesc2.StencilReadMask == 0xF8 );
+ assert( DSSDesc2.StencilWriteMask == 0xF1 );
+ assert( DSSDesc2.FrontFace.StencilFailOp == STENCIL_OP_KEEP );
+ assert( DSSDesc2.FrontFace.StencilDepthFailOp == STENCIL_OP_ZERO );
+ assert( DSSDesc2.FrontFace.StencilPassOp == STENCIL_OP_REPLACE );
+ assert( DSSDesc2.FrontFace.StencilFunc == COMPARISON_FUNC_EQUAL );
+ assert( DSSDesc2.BackFace.StencilFailOp == STENCIL_OP_INCR_SAT );
+ assert( DSSDesc2.BackFace.StencilDepthFailOp == STENCIL_OP_DECR_SAT );
+ assert( DSSDesc2.BackFace.StencilPassOp == STENCIL_OP_INVERT );
+ assert( DSSDesc2.BackFace.StencilFunc == COMPARISON_FUNC_NOT_EQUAL );
}
{