diff options
author | Jeroen Bakker <jeroen@blender.org> | 2021-11-09 14:31:34 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-11-12 11:22:56 +0300 |
commit | 8e437578342193832d8f66f9d8c81d6be723e927 (patch) | |
tree | 16de6cb19699fdbb5048f48735a3b90e1d155663 /CMakeLists.txt | |
parent | ae74ad191c3dbbbe2a7216e91392020e510f05ac (diff) |
GHOST: Vulkan Backend.
This adds a vulkan backend to GHOST. Still WIP, we should decide what
would be the minimum requirement to land in master.
Differential Revision: https://developer.blender.org/D13155
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d2e2d02dcde..6527c82c0fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -513,9 +513,12 @@ if(UNIX AND NOT APPLE) endif() +# Vulkan +option(WITH_VULKAN "Enable Vulkan GHOST backend (for development purposes)" OFF) + # OpenGL -option(WITH_OPENGL "When off limits visibility of the opengl headers to just bf_gpu and gawain (temporary option for development purposes)" ON) +option(WITH_OPENGL "When off limits visibility of the opengl headers to just bf_gpu (temporary option for development purposes)" ON) option(WITH_GLEW_ES "Switches to experimental copy of GLEW that has support for OpenGL ES. (temporary option for development purposes)" OFF) option(WITH_GL_EGL "Use the EGL OpenGL system library instead of the platform specific OpenGL system library (CGL, glX, or WGL)" OFF) option(WITH_GL_PROFILE_ES20 "Support using OpenGL ES 2.0. (through either EGL or the AGL/WGL/XGL 'es20' profile)" OFF) @@ -525,6 +528,7 @@ mark_as_advanced( WITH_GLEW_ES WITH_GL_EGL WITH_GL_PROFILE_ES20 + WITH_VULKAN ) if(WIN32) @@ -1126,6 +1130,15 @@ if(WITH_OPENVDB) endif() #----------------------------------------------------------------------------- +# Configure Vulkan. + +if(WITH_VULKAN) + list(APPEND BLENDER_GL_LIBRARIES ${Vulkan_LIBRARY}) + + add_definitions(-DWITH_VULKAN) +endif() + +#----------------------------------------------------------------------------- # Configure OpenGL. find_package(OpenGL) |