summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestCreateObjFromNativeResGL.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/TestCreateObjFromNativeResGL.cpp
parentFixed few compiler warnings (diff)
downloadDiligentEngine-ec3e81b7a7be77836ac52dc6168aa5ac4c498217.tar.gz
DiligentEngine-ec3e81b7a7be77836ac52dc6168aa5ac4c498217.zip
Added test result reporting
Diffstat (limited to 'Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp')
-rw-r--r--Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp b/Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp
index 9046a1f..0a61d22 100644
--- a/Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp
+++ b/Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp
@@ -107,7 +107,8 @@ void TestCreateObjFromNativeResGL::CreateTexture(Diligent::ITexture *pTexture)
TmpTexDesc.MipLevels = 0;
TmpTexDesc.Format = TEX_FORMAT_UNKNOWN;
pDeviceGL->CreateTextureFromGLHandle(GLHandle, TmpTexDesc, &pAttachedTexture);
-
+ ++m_NumTexturesCreated;
+
const auto &TestTexDesc = pAttachedTexture->GetDesc();
VERIFY_EXPR(TestTexDesc == SrcTexDesc);
RefCntAutoPtr<ITextureGL> pAttachedTextureGL(pAttachedTexture, IID_TextureGL);
@@ -127,7 +128,8 @@ void TestCreateObjFromNativeResGL::CreateBuffer(Diligent::IBuffer *pBuffer)
RefCntAutoPtr<IBuffer> pBufferFromNativeGLHandle;
pDeviceGL->CreateBufferFromGLHandle(GLBufferHandle, SrcBuffDesc, &pBufferFromNativeGLHandle);
-
+ ++m_NumBuffersCreated;
+
const auto &TestBufferDesc = pBufferFromNativeGLHandle->GetDesc();
VERIFY_EXPR(TestBufferDesc == SrcBuffDesc);