diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-03-19 14:02:10 +0100 |
---|---|---|
committer | Alf Watt <alf.watt@mapbox.com> | 2019-03-21 12:25:11 -0700 |
commit | 19d70f5be90fdf1e269b99f0a9e253dcca839cf9 (patch) | |
tree | 66f24099853793af7e6660e3ca1270917e4ebc0f /src/mbgl/programs/attributes.hpp | |
parent | 3b4291e38c95cf7e3b0900df23d709d4d9ce3b06 (diff) | |
download | qtlocation-mapboxgl-19d70f5be90fdf1e269b99f0a9e253dcca839cf9.tar.gz |
[core] use constexpr string concatenation for uniform/attribute names
Diffstat (limited to 'src/mbgl/programs/attributes.hpp')
-rw-r--r-- | src/mbgl/programs/attributes.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mbgl/programs/attributes.hpp b/src/mbgl/programs/attributes.hpp index 2ee2218fcb..803a9db503 100644 --- a/src/mbgl/programs/attributes.hpp +++ b/src/mbgl/programs/attributes.hpp @@ -25,7 +25,9 @@ MBGL_DEFINE_ATTRIBUTE(float, 2, shift); template <typename T, std::size_t N> struct data { using Type = gfx::AttributeType<T, N>; - static auto attributeName() { return "a_data"; } + static constexpr auto name() { + return "data"; + } }; // Paint attributes |