summaryrefslogtreecommitdiff
path: root/src/mbgl/shader/plain_vertex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/shader/plain_vertex.cpp')
-rw-r--r--src/mbgl/shader/plain_vertex.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mbgl/shader/plain_vertex.cpp b/src/mbgl/shader/plain_vertex.cpp
new file mode 100644
index 0000000000..679ef05c39
--- /dev/null
+++ b/src/mbgl/shader/plain_vertex.cpp
@@ -0,0 +1,13 @@
+#include <mbgl/shader/plain_vertex.hpp>
+#include <mbgl/shader/shader.hpp>
+#include <mbgl/gl/gl.hpp>
+
+namespace mbgl {
+
+void PlainVertex::bind(const int8_t* offset) {
+ static_assert(sizeof(PlainVertex) == 4, "expected PlainVertex size");
+
+ MBGL_BIND_VERTEX_ATTRIBUTE(PlainVertex, a_pos, offset);
+}
+
+} // namespace mbgl