diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-09-24 00:27:33 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-09-24 00:27:42 +0300 |
commit | 1b5c94630eb78c3a8f8249245dc7e70e23d644b0 (patch) | |
tree | c6c4314edc6bba6c22a467f63a465bf3153fa4b7 /source/blender/draw/engines/overlay/shaders/infos/overlay_edit_mode_info.hh | |
parent | fd2668a368db1257a16840af03c28e78c0063225 (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/draw/engines/overlay/shaders/infos/overlay_edit_mode_info.hh')
-rw-r--r-- | source/blender/draw/engines/overlay/shaders/infos/overlay_edit_mode_info.hh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/draw/engines/overlay/shaders/infos/overlay_edit_mode_info.hh b/source/blender/draw/engines/overlay/shaders/infos/overlay_edit_mode_info.hh index e2cc0a54153..8c9c943393f 100644 --- a/source/blender/draw/engines/overlay/shaders/infos/overlay_edit_mode_info.hh +++ b/source/blender/draw/engines/overlay/shaders/infos/overlay_edit_mode_info.hh @@ -74,7 +74,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_mesh_edge) /* The Non-Geometry shader variant passes directly to fragment. */ GPU_SHADER_CREATE_INFO(overlay_edit_mesh_edge_no_geom) - .do_static_compilation(true) + // .do_static_compilation(true) /* TODO fix on GL */ .define("EDGE") .vertex_in(0, Type::VEC3, "pos") .vertex_in(1, Type::UCHAR4, "data") @@ -90,7 +90,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_mesh_edge_flat) .additional_info("overlay_edit_mesh_edge"); GPU_SHADER_CREATE_INFO(overlay_edit_mesh_edge_flat_no_geom) - .do_static_compilation(true) + // .do_static_compilation(true) /* TODO fix on GL */ .define("FLAT") .additional_info("overlay_edit_mesh_edge_no_geom"); @@ -165,7 +165,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_mesh_edge_clipped) .additional_info("overlay_edit_mesh_edge", "drw_clipped"); GPU_SHADER_CREATE_INFO(overlay_edit_mesh_edge_clipped_no_geom) - .do_static_compilation(true) + // .do_static_compilation(true) /* TODO fix on GL */ .additional_info("overlay_edit_mesh_edge_no_geom", "drw_clipped"); GPU_SHADER_CREATE_INFO(overlay_edit_mesh_edge_flat_clipped) @@ -173,7 +173,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_mesh_edge_flat_clipped) .additional_info("overlay_edit_mesh_edge_flat", "drw_clipped"); GPU_SHADER_CREATE_INFO(overlay_edit_mesh_edge_flat_clipped_no_geom) - .do_static_compilation(true) + // .do_static_compilation(true) /* TODO fix on GL */ .additional_info("overlay_edit_mesh_edge_flat_no_geom", "drw_clipped"); GPU_SHADER_CREATE_INFO(overlay_edit_mesh_face_clipped) @@ -363,7 +363,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_curve_handle) .additional_info("draw_mesh", "draw_globals"); GPU_SHADER_CREATE_INFO(overlay_edit_curve_handle_no_geom) - .do_static_compilation(true) + // .do_static_compilation(true) /* TODO fix on GL */ .typedef_source("overlay_shader_shared.h") /* NOTE: Color already in Linear space. Which is what we want. */ .define("srgbTarget", "false") @@ -382,7 +382,7 @@ GPU_SHADER_CREATE_INFO(overlay_edit_curve_handle_clipped) .additional_info("overlay_edit_curve_handle", "drw_clipped"); GPU_SHADER_CREATE_INFO(overlay_edit_curve_handle_clipped_no_geom) - .do_static_compilation(true) + // .do_static_compilation(true) /* TODO fix on GL */ .additional_info("overlay_edit_curve_handle_no_geom", "drw_clipped"); GPU_SHADER_CREATE_INFO(overlay_edit_curve_point) |