diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-04-14 20:14:51 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-04-14 20:14:51 +0000 |
| commit | 921a995810a60528a71bbea1d4299155742af9d4 (patch) | |
| tree | cf87cef18084f17d81f3c68e51b0050e17eba741 /Tests/TestApp/src/TestApp.cpp | |
| parent | Merged master (diff) | |
| download | DiligentEngine-921a995810a60528a71bbea1d4299155742af9d4.tar.gz DiligentEngine-921a995810a60528a71bbea1d4299155742af9d4.zip | |
Moved primitive topology to pipeline state
Diffstat (limited to 'Tests/TestApp/src/TestApp.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestApp.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Tests/TestApp/src/TestApp.cpp b/Tests/TestApp/src/TestApp.cpp index fddb947..c162051 100644 --- a/Tests/TestApp/src/TestApp.cpp +++ b/Tests/TestApp/src/TestApp.cpp @@ -79,7 +79,8 @@ TestApp::TestApp() : TestApp::~TestApp() { - m_pMTResCreationTest->StopThreads(); + if(m_pMTResCreationTest) + m_pMTResCreationTest->StopThreads(); } @@ -207,6 +208,10 @@ void TestApp::InitializeDiligentEngine( LoadGraphicsEngineVk(GetEngineFactoryVk); #endif EngineVkAttribs EngVkAttribs; +#ifdef _DEBUG + EngVkAttribs.EnableValidation = true; +#endif + ppContexts.resize(1 + NumDeferredCtx); auto *pFactoryVk = GetEngineFactoryVk(); pFactoryVk->CreateDeviceAndContextsVk(EngVkAttribs, &m_pDevice, ppContexts.data(), NumDeferredCtx); @@ -247,12 +252,12 @@ void TestApp::InitializeDiligentEngine( void TestApp::InitializeRenderers() { bool bUseOpenGL = m_DeviceType == DeviceType::OpenGL || m_DeviceType == DeviceType::OpenGLES; - + TestRasterizerState TestRS(m_pDevice, m_pImmediateContext); TestBlendState TestBS(m_pDevice, m_pImmediateContext); TestDepthStencilState TestDSS(m_pDevice, m_pImmediateContext); - TestTextureCreation TestTexCreation(m_pDevice, m_pImmediateContext); TestBufferCreation TestBuffCreation(m_pDevice, m_pImmediateContext); + TestTextureCreation TestTexCreation(m_pDevice, m_pImmediateContext); TestPSOCompatibility TestPSOCompat(m_pDevice); TestBrokenShader TestBrknShdr(m_pDevice); @@ -425,7 +430,6 @@ void TestApp::InitializeRenderers() Diligent::DrawAttribs DrawAttrs; DrawAttrs.NumVertices = 3; - DrawAttrs.Topology = Diligent::PRIMITIVE_TOPOLOGY_TRIANGLE_LIST; m_pRenderScript->Run(m_pImmediateContext, "DrawTris", DrawAttrs); // This adds transition barrier for pTex1 @@ -543,7 +547,6 @@ void TestApp::Render() Diligent::DrawAttribs DrawAttrs; DrawAttrs.NumVertices = 3; - DrawAttrs.Topology = Diligent::PRIMITIVE_TOPOLOGY_TRIANGLE_LIST; m_pRenderScript->Run(m_pImmediateContext, "DrawTris", DrawAttrs); DrawAttrs.IsIndexed = true; |
