diff options
| author | Egor <egor.yusov@gmail.com> | 2018-11-07 17:09:05 +0000 |
|---|---|---|
| committer | Egor <egor.yusov@gmail.com> | 2018-11-07 17:09:05 +0000 |
| commit | 9d4f206c492acf25c1853174491e3e547db55cd3 (patch) | |
| tree | 907efc4ed98c311fd976652ec60282a118d444e2 /Tests/TestApp/src | |
| parent | Updated cmake version in CI build scripts (diff) | |
| download | DiligentEngine-9d4f206c492acf25c1853174491e3e547db55cd3.tar.gz DiligentEngine-9d4f206c492acf25c1853174491e3e547db55cd3.zip | |
Enabled Vulkan on Linux (closed https://github.com/DiligentGraphics/DiligentCore/issues/32)
Diffstat (limited to 'Tests/TestApp/src')
| -rw-r--r-- | Tests/TestApp/src/Linux/TestAppLinux.cpp | 14 | ||||
| -rw-r--r-- | Tests/TestApp/src/TestApp.cpp | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/Tests/TestApp/src/Linux/TestAppLinux.cpp b/Tests/TestApp/src/Linux/TestAppLinux.cpp index 335ba35..1393714 100644 --- a/Tests/TestApp/src/Linux/TestAppLinux.cpp +++ b/Tests/TestApp/src/Linux/TestAppLinux.cpp @@ -37,6 +37,20 @@ public: InitializeDiligentEngine(display, reinterpret_cast<void*>(static_cast<size_t>(window))); InitializeRenderers(); } + +#if VULKAN_SUPPORTED + virtual void InitVulkan(xcb_connection_t* connection, uint32_t window)override final + { + m_DeviceType = DeviceType::Vulkan; + struct XCBInfo + { + xcb_connection_t* connection; + uint32_t window; + }xcbInfo = {connection, window}; + InitializeDiligentEngine(nullptr, &xcbInfo); + InitializeRenderers(); + } +#endif }; NativeAppBase* CreateApplication() diff --git a/Tests/TestApp/src/TestApp.cpp b/Tests/TestApp/src/TestApp.cpp index 77709f8..e70483c 100644 --- a/Tests/TestApp/src/TestApp.cpp +++ b/Tests/TestApp/src/TestApp.cpp @@ -265,7 +265,7 @@ void TestApp::InitializeDiligentEngine( #if VULKAN_SUPPORTED case DeviceType::Vulkan: { -#if ENGINE_DLL +#if ENGINE_DLL && PLATFORM_WIN32 GetEngineFactoryVkType GetEngineFactoryVk = nullptr; // Load the dll and import GetEngineFactoryVk() function LoadGraphicsEngineVk(GetEngineFactoryVk); |
