[Bf-blender-cvs] [887ec48df9b] tmp-gpu-shader-descriptor-2: Enable compilation for gpu_shader_3D_flat_color variants.
Jeroen Bakker
noreply at git.blender.org
Wed Jan 5 15:41:07 CET 2022
Commit: 887ec48df9ba8f795239d16f29f49e180ef7058a
Author: Jeroen Bakker
Date: Wed Jan 5 15:04:09 2022 +0100
Branches: tmp-gpu-shader-descriptor-2
https://developer.blender.org/rB887ec48df9ba8f795239d16f29f49e180ef7058a
Enable compilation for gpu_shader_3D_flat_color variants.
===================================================================
M source/blender/gpu/shaders/gpu_shader_3D_flat_color_info.hh
===================================================================
diff --git a/source/blender/gpu/shaders/gpu_shader_3D_flat_color_info.hh b/source/blender/gpu/shaders/gpu_shader_3D_flat_color_info.hh
index ed821aae459..c22e89227ac 100644
--- a/source/blender/gpu/shaders/gpu_shader_3D_flat_color_info.hh
+++ b/source/blender/gpu/shaders/gpu_shader_3D_flat_color_info.hh
@@ -10,8 +10,10 @@ GPU_SHADER_CREATE_INFO(gpu_shader_3D_flat_color)
.fragment_out(0, Type::VEC4, "fragColor")
.push_constant(1, Type::BOOL, "srgbTarget")
.vertex_source("gpu_shader_3D_flat_color_vert.glsl")
- .fragment_source("gpu_shader_flat_color_frag.glsl");
+ .fragment_source("gpu_shader_flat_color_frag.glsl")
+ .do_static_compilation(true);
GPU_SHADER_CREATE_INFO(gpu_shader_3D_flat_color_clipped)
.additional_info("gpu_shader_3D_flat_color")
- .additional_info("gpu_clip_planes");
+ .additional_info("gpu_clip_planes")
+ .do_static_compilation(true);
More information about the Bf-blender-cvs
mailing list