From 5268f35ec9a8f340344bd6d9fe14bba78e398e6e Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 18 Feb 2018 21:08:25 -0800 Subject: Some minor updates to unit tests --- Tests/TestApp/src/TestBlendState.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Tests/TestApp/src/TestBlendState.cpp') diff --git a/Tests/TestApp/src/TestBlendState.cpp b/Tests/TestApp/src/TestBlendState.cpp index 1c0c526..d399372 100644 --- a/Tests/TestApp/src/TestBlendState.cpp +++ b/Tests/TestApp/src/TestBlendState.cpp @@ -54,6 +54,8 @@ TestBlendState::TestBlendState( IRenderDevice *pDevice, IDeviceContext *pContext // Dual-source color blending is not supported in GLES3.2, but NVidia's GPUs do support it const auto& DevCaps = pDevice->GetDeviceCaps(); bool TestSRC1 = DevCaps.DevType != DeviceType::OpenGLES;// || DevCaps.Vendor == GPU_VENDOR::NVIDIA; + std::stringstream statusss; + statusss << "Dual-source color blending " << (TestSRC1 ? "tested." : "NOT tested."); m_PSODesc.Name = "PSO-TestBlendStates"; BlendStateDesc &BSDesc = m_PSODesc.GraphicsPipeline.BlendDesc; @@ -86,6 +88,7 @@ TestBlendState::TestBlendState( IRenderDevice *pDevice, IDeviceContext *pContext // GLES is required to support 4 render targets int NumRenderTargetsToTest = DevCaps.DevType == DeviceType::OpenGLES ? 4 : 8; + statusss << " Num render targets tested: " << NumRenderTargetsToTest; for( int i = 0; i < NumRenderTargetsToTest; ++i ) { auto &RT = BSDesc.RenderTargets[i]; @@ -252,5 +255,5 @@ TestBlendState::TestBlendState( IRenderDevice *pDevice, IDeviceContext *pContext m_pDevice->CreatePipelineState(m_PSODesc, &pPSO ); pScript->Run( m_pDeviceContext, "TestPSOArg", pPSO ); } - SetStatus(TestResult::Succeeded); + SetStatus(TestResult::Succeeded, statusss.str().c_str()); } -- cgit v1.2.3