summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestCopyTexData.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-02-17 20:58:17 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-02-17 20:58:17 +0000
commitec3e81b7a7be77836ac52dc6168aa5ac4c498217 (patch)
tree6feacc63f6f2cfa51463831a1ea7399f8de9be81 /Tests/TestApp/src/TestCopyTexData.cpp
parentFixed few compiler warnings (diff)
downloadDiligentEngine-ec3e81b7a7be77836ac52dc6168aa5ac4c498217.tar.gz
DiligentEngine-ec3e81b7a7be77836ac52dc6168aa5ac4c498217.zip
Added test result reporting
Diffstat (limited to 'Tests/TestApp/src/TestCopyTexData.cpp')
-rw-r--r--Tests/TestApp/src/TestCopyTexData.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/TestApp/src/TestCopyTexData.cpp b/Tests/TestApp/src/TestCopyTexData.cpp
index cbd6a24..5bb65e1 100644
--- a/Tests/TestApp/src/TestCopyTexData.cpp
+++ b/Tests/TestApp/src/TestCopyTexData.cpp
@@ -30,6 +30,7 @@
using namespace Diligent;
TestCopyTexData::TestCopyTexData( IRenderDevice *pDevice, IDeviceContext *pContext ) :
+ UnitTestBase("Texture data copy test"),
m_pDevice(pDevice),
m_pContext(pContext)
{
@@ -68,12 +69,17 @@ TestCopyTexData::TestCopyTexData( IRenderDevice *pDevice, IDeviceContext *pConte
TEX_FORMAT_R8_UINT,
TEX_FORMAT_R8_SINT
};
+ int NumFormatsTested = 0;
for( auto f = 0; f < _countof( TestFormats ); ++f )
{
Test2DTexture(TestFormats[f]);
Test2DTexArray(TestFormats[f]);
Test3DTexture(TestFormats[f]);
+ ++NumFormatsTested;
}
+ std::stringstream infoss;
+ infoss << "Formats tested: " << NumFormatsTested;
+ SetStatus(TestResult::Succeeded, infoss.str().c_str());
}
void TestCopyTexData::Test2DTexture( TEXTURE_FORMAT Format )