diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-02-17 20:58:17 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-02-17 20:58:17 +0000 |
| commit | ec3e81b7a7be77836ac52dc6168aa5ac4c498217 (patch) | |
| tree | 6feacc63f6f2cfa51463831a1ea7399f8de9be81 /Tests/TestApp/src/TestTexturing.cpp | |
| parent | Fixed few compiler warnings (diff) | |
| download | DiligentEngine-ec3e81b7a7be77836ac52dc6168aa5ac4c498217.tar.gz DiligentEngine-ec3e81b7a7be77836ac52dc6168aa5ac4c498217.zip | |
Added test result reporting
Diffstat (limited to 'Tests/TestApp/src/TestTexturing.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestTexturing.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Tests/TestApp/src/TestTexturing.cpp b/Tests/TestApp/src/TestTexturing.cpp index 69f0a49..ef032d0 100644 --- a/Tests/TestApp/src/TestTexturing.cpp +++ b/Tests/TestApp/src/TestTexturing.cpp @@ -32,7 +32,8 @@ using namespace Diligent; -TestTexturing::TestTexturing() : +TestTexturing::TestTexturing() : + UnitTestBase("Texturing test"), m_iTestTexWidth(512), m_iTestTexHeight(512), m_iMipLevels(8), @@ -265,6 +266,11 @@ void TestTexturing::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceContext pVS->BindResources(m_pResourceMapping, 0); pPS->BindResources(m_pResourceMapping, 0); + + auto *FmtName = pDevice->GetTextureFormatInfo(TexFormat).Name; + m_TestName.append(" ("); + m_TestName.append(FmtName); + m_TestName.append(")"); } void TestTexturing::Draw() @@ -282,4 +288,6 @@ void TestTexturing::Draw() DrawAttrs.Topology = Diligent::PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP; DrawAttrs.NumVertices = 4; // Draw quad m_pDeviceContext->Draw( DrawAttrs ); + + SetStatus(TestResult::Succeeded); } |
