summaryrefslogtreecommitdiff
path: root/src/mbgl/gfx/context.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-03-15 14:10:25 +0100
committerAlf Watt <alf.watt@mapbox.com>2019-03-21 12:25:10 -0700
commit25818d5e6f8852b1163a25a98b22271c856d426d (patch)
treedbbfc8b83445590ee371c05324f483e92eed607d /src/mbgl/gfx/context.hpp
parent33604475e67243a6825dd73b089b40fdfa002276 (diff)
downloadqtlocation-mapboxgl-25818d5e6f8852b1163a25a98b22271c856d426d.tar.gz
[core] expose vertex binding count in gfx::Context
Diffstat (limited to 'src/mbgl/gfx/context.hpp')
-rw-r--r--src/mbgl/gfx/context.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mbgl/gfx/context.hpp b/src/mbgl/gfx/context.hpp
index 90b62c94a4..3653eeebe1 100644
--- a/src/mbgl/gfx/context.hpp
+++ b/src/mbgl/gfx/context.hpp
@@ -17,10 +17,14 @@ namespace gfx {
class Context {
protected:
- Context(ContextType type_) : backend(type_) {
+ Context(ContextType type_, uint32_t maximumVertexBindingCount_)
+ : backend(type_), maximumVertexBindingCount(maximumVertexBindingCount_) {
}
+public:
const ContextType backend;
+ static constexpr const uint32_t minimumRequiredVertexBindingCount = 8;
+ const uint32_t maximumVertexBindingCount;
public:
Context(Context&&) = delete;