diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-02-27 12:47:34 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-03-01 09:33:37 +0100 |
commit | 55c7b86053816e74c3fd3c0595c1fa053970f959 (patch) | |
tree | c34be5d76008fad4f28d39e9c39cc85ad31b72fe /src/mbgl/programs/program.hpp | |
parent | 7f1428ed3b90b54f503760471869ac83def32a59 (diff) | |
download | qtlocation-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.hpp | 8 |
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>; |