From ec3e81b7a7be77836ac52dc6168aa5ac4c498217 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 17 Feb 2018 12:58:17 -0800 Subject: Added test result reporting --- Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Tests/TestApp/src/TestCreateObjFromNativeResGL.cpp') 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 pAttachedTextureGL(pAttachedTexture, IID_TextureGL); @@ -127,7 +128,8 @@ void TestCreateObjFromNativeResGL::CreateBuffer(Diligent::IBuffer *pBuffer) RefCntAutoPtr pBufferFromNativeGLHandle; pDeviceGL->CreateBufferFromGLHandle(GLBufferHandle, SrcBuffDesc, &pBufferFromNativeGLHandle); - + ++m_NumBuffersCreated; + const auto &TestBufferDesc = pBufferFromNativeGLHandle->GetDesc(); VERIFY_EXPR(TestBufferDesc == SrcBuffDesc); -- cgit v1.2.3