summaryrefslogtreecommitdiff
path: root/src/mbgl/gfx
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-03-15 23:32:45 +0100
committerKonstantin Käfer <mail@kkaefer.com>2019-03-20 15:40:47 +0100
commit0ad2375e1047353fc65fabce3ac9123dc095179e (patch)
treeadfcd395cb9f38a3eff6845bb63e3ab8bcf131a3 /src/mbgl/gfx
parent9ee1de575af4ef332ad8812c11d9d63edc94d76e (diff)
downloadqtlocation-mapboxgl-0ad2375e1047353fc65fabce3ac9123dc095179e.tar.gz
[core] remove a_/u_ prefix from attribute/uniform types
Diffstat (limited to 'src/mbgl/gfx')
-rw-r--r--src/mbgl/gfx/attribute.hpp4
-rw-r--r--src/mbgl/gfx/texture.hpp4
-rw-r--r--src/mbgl/gfx/uniform.hpp12
3 files changed, 10 insertions, 10 deletions
diff --git a/src/mbgl/gfx/attribute.hpp b/src/mbgl/gfx/attribute.hpp
index 4f44d68d7b..aff27d9c1d 100644
--- a/src/mbgl/gfx/attribute.hpp
+++ b/src/mbgl/gfx/attribute.hpp
@@ -14,8 +14,8 @@
#define MBGL_DEFINE_ATTRIBUTE(type_, n_, name_) \
struct name_ { \
using Type = ::mbgl::gfx::AttributeType<type_, n_>; \
- static auto name() { \
- return #name_; \
+ static auto attributeName() { \
+ return "a_" #name_; \
} \
}
diff --git a/src/mbgl/gfx/texture.hpp b/src/mbgl/gfx/texture.hpp
index a957c4ebdf..05f98686a1 100644
--- a/src/mbgl/gfx/texture.hpp
+++ b/src/mbgl/gfx/texture.hpp
@@ -10,8 +10,8 @@
#define MBGL_DEFINE_TEXTURE(name_) \
struct name_ { \
using Value = ::mbgl::gfx::TextureBinding; \
- static constexpr auto name() { \
- return #name_; \
+ static constexpr auto uniformName() { \
+ return "u_" #name_; \
} \
}
diff --git a/src/mbgl/gfx/uniform.hpp b/src/mbgl/gfx/uniform.hpp
index f6896b9138..44cfe35510 100644
--- a/src/mbgl/gfx/uniform.hpp
+++ b/src/mbgl/gfx/uniform.hpp
@@ -8,24 +8,24 @@
#define MBGL_DEFINE_UNIFORM_SCALAR(type_, name_) \
struct name_ { \
using Value = type_; \
- static constexpr auto name() { \
- return #name_; \
+ static constexpr auto uniformName() { \
+ return "u_" #name_; \
} \
}
#define MBGL_DEFINE_UNIFORM_VECTOR(type_, n_, name_) \
struct name_ { \
using Value = std::array<type_, n_>; \
- static constexpr auto name() { \
- return #name_; \
+ static constexpr auto uniformName() { \
+ return "u_" #name_; \
} \
}
#define MBGL_DEFINE_UNIFORM_MATRIX(type_, n_, name_) \
struct name_ { \
using Value = std::array<type_, n_ * n_>; \
- static constexpr auto name() { \
- return #name_; \
+ static constexpr auto uniformName() { \
+ return "u_" #name_; \
} \
}