summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestApp.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-02-17 02:29:14 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-02-17 02:29:14 +0000
commit287e31b9f40fd13eeae13d7b6e7db8cc5e946303 (patch)
treecae37c0df03fa04b126df3fba319b4194627f763 /Tests/TestApp/src/TestApp.cpp
parentEnabled test app on Android (diff)
downloadDiligentEngine-287e31b9f40fd13eeae13d7b6e7db8cc5e946303.tar.gz
DiligentEngine-287e31b9f40fd13eeae13d7b6e7db8cc5e946303.zip
Enabled test app in MacOS
Diffstat (limited to 'Tests/TestApp/src/TestApp.cpp')
-rw-r--r--Tests/TestApp/src/TestApp.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/Tests/TestApp/src/TestApp.cpp b/Tests/TestApp/src/TestApp.cpp
index d811ce2..ff2d928 100644
--- a/Tests/TestApp/src/TestApp.cpp
+++ b/Tests/TestApp/src/TestApp.cpp
@@ -225,9 +225,11 @@ void TestApp::InitializeRenderers()
TestVPAndSR TestVPAndSR(m_pDevice, m_pImmediateContext);
-
- m_pTestCS.reset(new TestComputeShaders);
- m_pTestCS->Init(m_pDevice, m_pImmediateContext);
+ if(m_pDevice->GetDeviceCaps().bComputeShadersSupported)
+ {
+ m_pTestCS.reset(new TestComputeShaders);
+ m_pTestCS->Init(m_pDevice, m_pImmediateContext);
+ }
m_pTestRT.reset(new TestRenderTarget);
m_pTestRT->Init(m_pDevice, m_pImmediateContext, -0.4f, 0.55f, 0.4f, 0.4f);
@@ -478,7 +480,8 @@ void TestApp::Render()
{
m_pTestTexturing[i]->Draw();
}
- m_pTestCS->Draw();
+ if(m_pTestCS)
+ m_pTestCS->Draw();
m_pTestRT->Draw();
m_pTestShaderResArrays->Draw();
m_TestGS.Draw();