summaryrefslogtreecommitdiff
path: root/src/mbgl/programs/attributes.hpp
blob: 38bbe893776538bb8e111ba8f60567f2aefef6c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <mbgl/gl/attribute.hpp>

#include <cstdint>

namespace mbgl {
namespace attributes {

// Attributes common to several shaders.

MBGL_DEFINE_ATTRIBUTE(int16_t, 2, a_pos);
MBGL_DEFINE_ATTRIBUTE(int16_t, 2, a_offset);
MBGL_DEFINE_ATTRIBUTE(int16_t, 2, a_extrude);
MBGL_DEFINE_ATTRIBUTE(uint16_t, 2, a_texture_pos);

template <std::size_t N>
struct a_data : gl::Attribute<a_data<N>, uint8_t, N> {
    static constexpr auto name = "a_data";
};

} // namespace attributes
} // namespace mbgl