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:
authorClément Foucault <foucault.clem@gmail.com>2022-09-24 00:27:33 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-09-24 00:27:42 +0300
commit1b5c94630eb78c3a8f8249245dc7e70e23d644b0 (patch)
treec6c4314edc6bba6c22a467f63a465bf3153fa4b7 /source/blender/gpu
parentfd2668a368db1257a16840af03c28e78c0063225 (diff)
GPU: Disable static compilation for geometry shaders workaround
These shaders are only supported by the Metal backed. Regression introduced by 1514e1a5b7e15ec0c11cd40c2b9389982bd5d00e
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/shaders/infos/gpu_shader_3D_polyline_info.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/gpu/shaders/infos/gpu_shader_3D_polyline_info.hh b/source/blender/gpu/shaders/infos/gpu_shader_3D_polyline_info.hh
index f16dc516bac..23f6790abfc 100644
--- a/source/blender/gpu/shaders/infos/gpu_shader_3D_polyline_info.hh
+++ b/source/blender/gpu/shaders/infos/gpu_shader_3D_polyline_info.hh
@@ -49,7 +49,7 @@ GPU_SHADER_CREATE_INFO(gpu_shader_3D_polyline_uniform_color)
.additional_info("gpu_shader_3D_polyline");
GPU_SHADER_CREATE_INFO(gpu_shader_3D_polyline_uniform_color_no_geom)
- .do_static_compilation(true)
+ // .do_static_compilation(true) /* TODO fix on GL */
.define("UNIFORM")
.push_constant(Type::VEC4, "color")
.additional_info("gpu_shader_3D_polyline_no_geom");
@@ -63,7 +63,7 @@ GPU_SHADER_CREATE_INFO(gpu_shader_3D_polyline_uniform_color_clipped)
.additional_info("gpu_shader_3D_polyline_uniform_color");
GPU_SHADER_CREATE_INFO(gpu_shader_3D_polyline_uniform_color_clipped_no_geom)
- .do_static_compilation(true)
+ // .do_static_compilation(true) /* TODO fix on GL */
/* TODO(fclem): Put in an UBO to fit the 128byte requirement. */
.push_constant(Type::MAT4, "ModelMatrix")
.push_constant(Type::VEC4, "ClipPlane")
@@ -77,7 +77,7 @@ GPU_SHADER_CREATE_INFO(gpu_shader_3D_polyline_flat_color)
.additional_info("gpu_shader_3D_polyline");
GPU_SHADER_CREATE_INFO(gpu_shader_3D_polyline_flat_color_no_geom)
- .do_static_compilation(true)
+ // .do_static_compilation(true) /* TODO fix on GL */
.define("FLAT")
.vertex_in(1, Type::VEC4, "color")
.additional_info("gpu_shader_3D_polyline_no_geom");
@@ -89,7 +89,7 @@ GPU_SHADER_CREATE_INFO(gpu_shader_3D_polyline_smooth_color)
.additional_info("gpu_shader_3D_polyline");
GPU_SHADER_CREATE_INFO(gpu_shader_3D_polyline_smooth_color_no_geom)
- .do_static_compilation(true)
+ // .do_static_compilation(true) /* TODO fix on GL */
.define("SMOOTH")
.vertex_in(1, Type::VEC4, "color")
.additional_info("gpu_shader_3D_polyline_no_geom");