[core] use constexpr string concatenation for uniform/attribute names

This commit is contained in:
Konstantin Käfer
2019-03-19 14:02:10 +01:00
parent 0ad2375e10
commit 53ab65d811
27 changed files with 621 additions and 533 deletions

View File

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