diff --git a/include/mbgl/shaders/gl/background.hpp b/include/mbgl/shaders/gl/background.hpp index 4805cd3ce..cfc19d792 100644 --- a/include/mbgl/shaders/gl/background.hpp +++ b/include/mbgl/shaders/gl/background.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/background_pattern.hpp b/include/mbgl/shaders/gl/background_pattern.hpp index 7a42131ca..bb6dd5968 100644 --- a/include/mbgl/shaders/gl/background_pattern.hpp +++ b/include/mbgl/shaders/gl/background_pattern.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/circle.hpp b/include/mbgl/shaders/gl/circle.hpp index 8e8f55e64..f02c02589 100644 --- a/include/mbgl/shaders/gl/circle.hpp +++ b/include/mbgl/shaders/gl/circle.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/clipping_mask.hpp b/include/mbgl/shaders/gl/clipping_mask.hpp index e4a4c4fa4..cd95ae286 100644 --- a/include/mbgl/shaders/gl/clipping_mask.hpp +++ b/include/mbgl/shaders/gl/clipping_mask.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/collision_box.hpp b/include/mbgl/shaders/gl/collision_box.hpp index cf16af592..526af7baf 100644 --- a/include/mbgl/shaders/gl/collision_box.hpp +++ b/include/mbgl/shaders/gl/collision_box.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/collision_circle.hpp b/include/mbgl/shaders/gl/collision_circle.hpp index d8c739909..15ea527ba 100644 --- a/include/mbgl/shaders/gl/collision_circle.hpp +++ b/include/mbgl/shaders/gl/collision_circle.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/debug.hpp b/include/mbgl/shaders/gl/debug.hpp index 2fe265437..4c0ef97ad 100644 --- a/include/mbgl/shaders/gl/debug.hpp +++ b/include/mbgl/shaders/gl/debug.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/drawable_background.hpp b/include/mbgl/shaders/gl/drawable_background.hpp index 4b770b4e9..bb7271459 100644 --- a/include/mbgl/shaders/gl/drawable_background.hpp +++ b/include/mbgl/shaders/gl/drawable_background.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-24T21:16:59.579Z by timsylvester using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/drawable_circle.hpp b/include/mbgl/shaders/gl/drawable_circle.hpp index f13997848..d55b883d0 100644 --- a/include/mbgl/shaders/gl/drawable_circle.hpp +++ b/include/mbgl/shaders/gl/drawable_circle.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-17T18:24:20.170Z by alex using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/drawable_fill.hpp b/include/mbgl/shaders/gl/drawable_fill.hpp index 1c12ae953..927feb5be 100644 --- a/include/mbgl/shaders/gl/drawable_fill.hpp +++ b/include/mbgl/shaders/gl/drawable_fill.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-25T15:19:24.210Z by timsylvester using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/drawable_fill_outline.hpp b/include/mbgl/shaders/gl/drawable_fill_outline.hpp index 8a35b5dca..1b0399e51 100644 --- a/include/mbgl/shaders/gl/drawable_fill_outline.hpp +++ b/include/mbgl/shaders/gl/drawable_fill_outline.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-25T15:19:24.210Z by timsylvester using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/drawable_fill_outline_pattern.hpp b/include/mbgl/shaders/gl/drawable_fill_outline_pattern.hpp index 74e42b338..114be8ea1 100644 --- a/include/mbgl/shaders/gl/drawable_fill_outline_pattern.hpp +++ b/include/mbgl/shaders/gl/drawable_fill_outline_pattern.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-25T14:44:39.644Z by timsylvester using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/drawable_fill_pattern.hpp b/include/mbgl/shaders/gl/drawable_fill_pattern.hpp index 3b7afe08c..4b8fa7e4c 100644 --- a/include/mbgl/shaders/gl/drawable_fill_pattern.hpp +++ b/include/mbgl/shaders/gl/drawable_fill_pattern.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-25T14:44:39.644Z by timsylvester using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/fill.hpp b/include/mbgl/shaders/gl/fill.hpp index 959fa6540..f1ed0e6f2 100644 --- a/include/mbgl/shaders/gl/fill.hpp +++ b/include/mbgl/shaders/gl/fill.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/fill_extrusion.hpp b/include/mbgl/shaders/gl/fill_extrusion.hpp index 62cb895d8..c1a490e3f 100644 --- a/include/mbgl/shaders/gl/fill_extrusion.hpp +++ b/include/mbgl/shaders/gl/fill_extrusion.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/fill_extrusion_pattern.hpp b/include/mbgl/shaders/gl/fill_extrusion_pattern.hpp index d91b16542..f309881b7 100644 --- a/include/mbgl/shaders/gl/fill_extrusion_pattern.hpp +++ b/include/mbgl/shaders/gl/fill_extrusion_pattern.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/fill_outline.hpp b/include/mbgl/shaders/gl/fill_outline.hpp index 5c3d4a3ba..800829391 100644 --- a/include/mbgl/shaders/gl/fill_outline.hpp +++ b/include/mbgl/shaders/gl/fill_outline.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/fill_outline_pattern.hpp b/include/mbgl/shaders/gl/fill_outline_pattern.hpp index 4f8b2ee5e..392264b75 100644 --- a/include/mbgl/shaders/gl/fill_outline_pattern.hpp +++ b/include/mbgl/shaders/gl/fill_outline_pattern.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/fill_pattern.hpp b/include/mbgl/shaders/gl/fill_pattern.hpp index d6677a547..8219ffafe 100644 --- a/include/mbgl/shaders/gl/fill_pattern.hpp +++ b/include/mbgl/shaders/gl/fill_pattern.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/heatmap.hpp b/include/mbgl/shaders/gl/heatmap.hpp index d9f76b8c2..ea0aeab9f 100644 --- a/include/mbgl/shaders/gl/heatmap.hpp +++ b/include/mbgl/shaders/gl/heatmap.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/heatmap_texture.hpp b/include/mbgl/shaders/gl/heatmap_texture.hpp index 97f0e15e2..5115a2897 100644 --- a/include/mbgl/shaders/gl/heatmap_texture.hpp +++ b/include/mbgl/shaders/gl/heatmap_texture.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/hillshade.hpp b/include/mbgl/shaders/gl/hillshade.hpp index 60228ed73..67b69950c 100644 --- a/include/mbgl/shaders/gl/hillshade.hpp +++ b/include/mbgl/shaders/gl/hillshade.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/hillshade_prepare.hpp b/include/mbgl/shaders/gl/hillshade_prepare.hpp index 7b19b81a9..82fd08ff7 100644 --- a/include/mbgl/shaders/gl/hillshade_prepare.hpp +++ b/include/mbgl/shaders/gl/hillshade_prepare.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/line.hpp b/include/mbgl/shaders/gl/line.hpp index 73a7900aa..3993a8a32 100644 --- a/include/mbgl/shaders/gl/line.hpp +++ b/include/mbgl/shaders/gl/line.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/line_gradient.hpp b/include/mbgl/shaders/gl/line_gradient.hpp index bfc447032..74f0d105a 100644 --- a/include/mbgl/shaders/gl/line_gradient.hpp +++ b/include/mbgl/shaders/gl/line_gradient.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/line_pattern.hpp b/include/mbgl/shaders/gl/line_pattern.hpp index 470d12a4f..2f1ecedf1 100644 --- a/include/mbgl/shaders/gl/line_pattern.hpp +++ b/include/mbgl/shaders/gl/line_pattern.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/line_sdf.hpp b/include/mbgl/shaders/gl/line_sdf.hpp index a70ebcb86..830a2f03a 100644 --- a/include/mbgl/shaders/gl/line_sdf.hpp +++ b/include/mbgl/shaders/gl/line_sdf.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/prelude.hpp b/include/mbgl/shaders/gl/prelude.hpp index fcc90c471..167d045f5 100644 --- a/include/mbgl/shaders/gl/prelude.hpp +++ b/include/mbgl/shaders/gl/prelude.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/raster.hpp b/include/mbgl/shaders/gl/raster.hpp index 720824d30..6320dad54 100644 --- a/include/mbgl/shaders/gl/raster.hpp +++ b/include/mbgl/shaders/gl/raster.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/symbol_icon.hpp b/include/mbgl/shaders/gl/symbol_icon.hpp index 5638e1095..cfd59942a 100644 --- a/include/mbgl/shaders/gl/symbol_icon.hpp +++ b/include/mbgl/shaders/gl/symbol_icon.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/symbol_sdf_icon.hpp b/include/mbgl/shaders/gl/symbol_sdf_icon.hpp index 5cd3ce521..17f6327de 100644 --- a/include/mbgl/shaders/gl/symbol_sdf_icon.hpp +++ b/include/mbgl/shaders/gl/symbol_sdf_icon.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/symbol_sdf_text.hpp b/include/mbgl/shaders/gl/symbol_sdf_text.hpp index 1b47f9b42..66da9b9a2 100644 --- a/include/mbgl/shaders/gl/symbol_sdf_text.hpp +++ b/include/mbgl/shaders/gl/symbol_sdf_text.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/gl/symbol_text_and_icon.hpp b/include/mbgl/shaders/gl/symbol_text_and_icon.hpp index 4ef64370d..68332a8b3 100644 --- a/include/mbgl/shaders/gl/symbol_text_and_icon.hpp +++ b/include/mbgl/shaders/gl/symbol_text_and_icon.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-12T17:51:34.322Z by mwilsnd using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/shader_manifest.hpp b/include/mbgl/shaders/shader_manifest.hpp index 7ac3fb8b9..a2bd093b0 100644 --- a/include/mbgl/shaders/shader_manifest.hpp +++ b/include/mbgl/shaders/shader_manifest.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-23T18:10:10.798Z by timsylvester using shaders/generate_shader_code.js - #pragma once #include diff --git a/include/mbgl/shaders/shader_source.hpp b/include/mbgl/shaders/shader_source.hpp index a6d67a4da..884b5e70f 100644 --- a/include/mbgl/shaders/shader_source.hpp +++ b/include/mbgl/shaders/shader_source.hpp @@ -1,6 +1,4 @@ // Generated code, do not modify this file! -// Generated on 2023-05-23T18:10:10.798Z by timsylvester using shaders/generate_shader_code.js - #pragma once #include diff --git a/shaders/generate_shader_code.js b/shaders/generate_shader_code.js index dba2fdc5b..4b083daed 100644 --- a/shaders/generate_shader_code.js +++ b/shaders/generate_shader_code.js @@ -252,7 +252,8 @@ JSON.parse(fs.readFileSync(path.join(shaderRoot, "manifest.json"))) namespace mbgl { namespace shaders { -template <> struct ShaderSource { +template <> +struct ShaderSource { static constexpr const char* name = "${elem.name}"; static constexpr const char* vertex = R"(${args.strip ? strip(vert) : vert})"; static constexpr const char* fragment = R"(${args.strip ? strip(frag) : frag})"; @@ -302,7 +303,8 @@ template struct ShaderSource; /// @brief A specialization of the ShaderSource template for no shader code. -template <> struct ShaderSource { +template <> +struct ShaderSource { static constexpr const char* name = ""; static constexpr const char* vertex = ""; static constexpr const char* fragment = "";