History

Enable Vulkan backend in Interface

Karol Suprynowicz committed 2 years ago

Commit ed8af431 parent 6c3e2a91 file · +4 −0Browse files

Showing the changes to interface/src/graphics/GraphicsEngine.cpp (1 of 1 file). Show all

Unified · Split

interface/src/graphics/GraphicsEngine.cpp+4−0
@@ -57,7 +57,11 @@ void GraphicsEngine::initializeGPU(GLWidget* glwidget) { · 56 unmodified lines
5757 // and the GPU backend will make things like the VAO which cannot be shared across
5858 // contexts
5959 glwidget->makeCurrent();
60+#ifdef USE_GL
6061 gpu::Context::init<gpu::gl::GLBackend>();
62+#else
63+ gpu::Context::init<gpu::vulkan::VKBackend>();
64+#endif
6165 glwidget->makeCurrent();
6266 _gpuContext = std::make_shared<gpu::Context>();
6367