summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-shaders.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build-shaders.py b/scripts/build-shaders.py
index 3b02cdc886..d679172554 100755
--- a/scripts/build-shaders.py
+++ b/scripts/build-shaders.py
@@ -50,6 +50,11 @@ namespace mbgl {{
namespace shaders {{
namespace {name} {{
+#ifndef MBGL_SHADER_NAME_{NAME}
+#define MBGL_SHADER_NAME_{NAME}
+constexpr const char* name = "{name}";
+#endif // MBGL_SHADER_NAME_{NAME}
+
#ifdef GL_ES_VERSION_2_0
constexpr const char* {type} = R"MBGL_SHADER(precision highp float;\n{data})MBGL_SHADER";
#else