[core] Autogenerate Shader name

This commit is contained in:
Bruno de Oliveira Abinader
2016-06-18 15:32:49 +03:00
parent 760a692378
commit 76fc07c606
17 changed files with 42 additions and 60 deletions

View File

@@ -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