diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-11-21 11:53:39 +0200 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-12-02 17:11:49 +0200 |
commit | 84ec3794770168f30e2e8612af41940cc409d554 (patch) | |
tree | 0840f2c382d18484e789c2d2d12157c34765ac59 /scripts | |
parent | 72e9388a61fa1f346043da594d33d2881f7aa329 (diff) | |
download | qtlocation-mapboxgl-84ec3794770168f30e2e8612af41940cc409d554.tar.gz |
[core] Turn off clang format for generated shaded code
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/generate-shaders.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/generate-shaders.js b/scripts/generate-shaders.js index 69cdb5bb28..4816b89d3e 100755 --- a/scripts/generate-shaders.js +++ b/scripts/generate-shaders.js @@ -98,7 +98,7 @@ struct ShaderSource; `); writeIfModified(path.join(outputPath, 'gl', 'shader_source.cpp'), `// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED. - +// clang-format off #include <mbgl/programs/gl/shader_source.hpp> #include <mbgl/util/compression.hpp> @@ -108,10 +108,8 @@ namespace mbgl { namespace programs { namespace gl { -// clang-format off constexpr const uint8_t compressedShaderSource[] = { ${compressed}}; -// clang-format on const char* shaderSource() { static std::string decompressed = util::decompress(std::string(reinterpret_cast<const char*>(compressedShaderSource), sizeof(compressedShaderSource))); @@ -121,6 +119,7 @@ const char* shaderSource() { } // namespace gl } // namespace programs } // namespace mbgl +// clang-format on `); writeIfModified(path.join(outputPath, 'gl', 'preludes.hpp'), `// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED. |