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

#include <mbgl/gl/shader.hpp>
#include <mbgl/gl/attribute.hpp>
#include <mbgl/shader/line_uniforms.hpp>

namespace mbgl {

class LineVertex;

class LineSDFShader : public gl::Shader {
public:
    LineSDFShader(gl::Context&, Defines defines = None);

    using VertexType = LineVertex;
    using UniformsType = LineSDFUniforms;

    gl::Attribute<int16_t, 2> a_pos  = { "a_pos",  *this };
    gl::Attribute<uint8_t, 4> a_data = { "a_data", *this };

    typename LineSDFUniforms::State uniformsState;
};


} // namespace mbgl