[core] Adjust mapbox-gl-native for the updated debug shader semantics

This commit is contained in:
Mikhail Pozdnyakov
2020-03-10 15:48:11 +02:00
parent 6c26e141a8
commit b83de65813
8 changed files with 39 additions and 23 deletions

View File

@@ -1,23 +1,22 @@
#pragma once
#include <mbgl/programs/program.hpp>
#include <mbgl/programs/attributes.hpp>
#include <mbgl/programs/program.hpp>
#include <mbgl/programs/textures.hpp>
#include <mbgl/programs/uniforms.hpp>
#include <mbgl/style/properties.hpp>
namespace mbgl {
class DebugProgram : public Program<
DebugProgram,
gfx::PrimitiveType::Line,
TypeList<
attributes::pos>,
TypeList<
uniforms::matrix,
uniforms::color>,
TypeList<>,
style::Properties<>>
{
namespace uniforms {
MBGL_DEFINE_UNIFORM_SCALAR(float, overlay_scale);
}
class DebugProgram : public Program<DebugProgram,
gfx::PrimitiveType::Line,
TypeList<attributes::pos>,
TypeList<uniforms::matrix, uniforms::color, uniforms::overlay_scale>,
TypeList<textures::overlay>,
style::Properties<>> {
public:
using Program::Program;
};