summaryrefslogtreecommitdiff
path: root/src/mbgl/programs/program.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-02-27 12:47:34 +0100
committerKonstantin Käfer <mail@kkaefer.com>2019-03-01 09:33:37 +0100
commit55c7b86053816e74c3fd3c0595c1fa053970f959 (patch)
treec34be5d76008fad4f28d39e9c39cc85ad31b72fe /src/mbgl/programs/program.hpp
parent7f1428ed3b90b54f503760471869ac83def32a59 (diff)
downloadqtlocation-mapboxgl-55c7b86053816e74c3fd3c0595c1fa053970f959.tar.gz
[core] extract uniform type lists from gl namespace
Diffstat (limited to 'src/mbgl/programs/program.hpp')
-rw-r--r--src/mbgl/programs/program.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/programs/program.hpp b/src/mbgl/programs/program.hpp
index 7c97727d89..30d226854f 100644
--- a/src/mbgl/programs/program.hpp
+++ b/src/mbgl/programs/program.hpp
@@ -17,7 +17,7 @@ namespace mbgl {
template <class Shaders,
class Primitive,
class LayoutAttrs,
- class Uniforms,
+ class UniformTypeList,
class PaintProps>
class Program {
public:
@@ -29,9 +29,9 @@ public:
using PaintAttributes = typename PaintPropertyBinders::Attributes;
using Attributes = gl::ConcatenateAttributes<LayoutAttributes, PaintAttributes>;
- using UniformValues = typename Uniforms::Values;
- using PaintUniforms = typename PaintPropertyBinders::Uniforms;
- using AllUniforms = gl::ConcatenateUniforms<Uniforms, PaintUniforms>;
+ using UniformValues = gfx::UniformValues<UniformTypeList>;
+ using PaintUniformTypeList = typename PaintPropertyBinders::UniformTypeList;
+ using AllUniforms = typename TypeListConcat<UniformTypeList, PaintUniformTypeList>::template ExpandInto<gl::Uniforms>;
using ProgramType = gl::Program<Primitive, Attributes, AllUniforms>;