[Bf-blender-cvs] [8ca09e6c5eb] master: GPU: add BUIDTIME to WITH_GPU_SHADER_BUILDER

Jeroen Bakker noreply at git.blender.org
Mon Jul 11 16:47:51 CEST 2022


Commit: 8ca09e6c5eb6ac5401f7e7d89185e341921e7d3a
Author: Jeroen Bakker
Date:   Mon Jul 11 16:45:07 2022 +0200
Branches: master
https://developer.blender.org/rB8ca09e6c5eb6ac5401f7e7d89185e341921e7d3a

GPU: add BUIDTIME to WITH_GPU_SHADER_BUILDER

Adds a better name that describes when it is used.
The GPU_SHADER_BUILDER is a buildtime tool for developers
to pre-validate GLSL (and in the overseen future pre-compile to
SpirV). We don't see that this needs to become a required
step in the future so WITH_GPU_BUILDTIME_SHADER_BUILDER
is more descriptive name.

===================================================================

M	CMakeLists.txt
M	release/datafiles/locale
M	release/scripts/addons
M	source/blender/gpu/CMakeLists.txt

===================================================================

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 22f31d6af48..6b7ee7f1887 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -565,13 +565,13 @@ endif()
 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_GLEW_ES             "Switches to experimental copy of GLEW that has support for OpenGL ES. (temporary option for development purposes)" OFF)
 option(WITH_GL_PROFILE_ES20     "Support using OpenGL ES 2.0. (through either EGL or the AGL/WGL/XGL 'es20' profile)"                               OFF)
-option(WITH_GPU_SHADER_BUILDER  "Shader builder is a developer option enabling linting on GLSL during compilation"                                  OFF)
+option(WITH_GPU_BUILDTIME_SHADER_BUILDER  "Shader builder is a developer option enabling linting on GLSL during compilation"                                  OFF)
 
 mark_as_advanced(
   WITH_OPENGL
   WITH_GLEW_ES
   WITH_GL_PROFILE_ES20
-  WITH_GPU_SHADER_BUILDER
+  WITH_GPU_BUILDTIME_SHADER_BUILDER
 )
 
 # Metal
@@ -1340,9 +1340,9 @@ else()
   list(APPEND GL_DEFINITIONS -DWITH_GL_PROFILE_CORE)
 endif()
 
-if (WITH_GPU_SHADER_BUILDER AND WITH_USD)
+if (WITH_GPU_BUILDTIME_SHADER_BUILDER AND WITH_USD)
   message(FATAL_ERROR
-    "Unable to compile WITH_GPU_SHADER_BUILDER and WITH_USD."
+    "Unable to compile WITH_GPU_BUILDTIME_SHADER_BUILDER and WITH_USD."
   )
 endif()
 
diff --git a/release/datafiles/locale b/release/datafiles/locale
index 055bc5223c1..a2eb5078914 160000
--- a/release/datafiles/locale
+++ b/release/datafiles/locale
@@ -1 +1 @@
-Subproject commit 055bc5223c1cd249e32ccbc8e8796ba9925c8c33
+Subproject commit a2eb507891449a0b67582be9561840075513661d
diff --git a/release/scripts/addons b/release/scripts/addons
index 7ea2e74fc41..7a8502871c3 160000
--- a/release/scripts/addons
+++ b/release/scripts/addons
@@ -1 +1 @@
-Subproject commit 7ea2e74fc41b2eabdbf639b812082e73823b09d7
+Subproject commit 7a8502871c34db0343cc7de52d6b49b15a84238a
diff --git a/source/blender/gpu/CMakeLists.txt b/source/blender/gpu/CMakeLists.txt
index 0f539d4b30a..1c883f7fa41 100644
--- a/source/blender/gpu/CMakeLists.txt
+++ b/source/blender/gpu/CMakeLists.txt
@@ -561,7 +561,7 @@ endif()
 
 
 
-if(WITH_GPU_SHADER_BUILDER)
+if(WITH_GPU_BUILDTIME_SHADER_BUILDER)
   # TODO(@fclem) Fix this mess.
   if(APPLE)
     add_executable(shader_builder



More information about the Bf-blender-cvs mailing list