Skip to main content

Module binders

Module binders 

Source
Expand description

The binders of a layer type’s data-driven paint values: what a bucket keeps of each feature’s values for its layers’ draws, which feature state rewrites, and the macro that declares a type’s binders.

Structs§

CrossFadedPaintPropertyBinder
The binder of a *-pattern property, whose two attributes are four u16s each.
InterleavedVertexBuffer
The data-driven attribute values of all the binders of one paint_property_binders! struct, one interleaved vertex per layout vertex.
LayerBinders
A set of binders P for each layer of a layout’s group, which their bucket holds.
PaintPropertyBinder
The binder of a data-driven paint property of a single attribute: its constant, or each feature’s value, or each feature’s values at the two zooms its expression interpolates between, in the bucket’s interleaved vertices, with their statistics.
PatternDependency
The images of a feature’s pattern at the zooms its cross-fade reads: a pattern property’s dependency, which its binder takes the positions of.

Enums§

InterleavedVertexData
Where a binder’s values are in the interleaved vertex: not yet placed, or at a byte offset.

Traits§

BinderValue
The value types of data-driven paint properties with a single attribute (float and Color in circle, fill and line): the attribute’s value of a value (attribute_value), and its type.
PaintBinders
A layer type’s binders of its data-driven paint properties, one per property, sharing one InterleavedVertexBuffer: what paint_property_binders! declares.
PaintPropertyBinderBase
What a layer’s set of binders and bind_paint_property do with either binder enum.

Functions§

bind_paint_property
Binds binder’s values, shared, the vertices of buffer, to the attributes attributes in attrs, or records the properties of those names in uniforms if the property is constant or has no values.
shared_paint
An attribute that reads the values at offset in each of the stride bytes of shared, the vertices of a bucket’s paint values, as data_type.

Type Aliases§

PatternLayerMap
Each layer’s PatternDependency of a feature, by layer id.