Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2021-11-09 14:31:34 +0300
committerJeroen Bakker <jeroen@blender.org>2021-11-12 11:22:56 +0300
commit8e437578342193832d8f66f9d8c81d6be723e927 (patch)
tree16de6cb19699fdbb5048f48735a3b90e1d155663 /CMakeLists.txt
parentae74ad191c3dbbbe2a7216e91392020e510f05ac (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.txt15
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)