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.
PaintAttributes
How a program reads a layer’s data-driven paint values (PaintBinders): the vertices of the values it reads as attributes, and the properties it reads from uniforms instead, which pick its variant (Resources::shader_key).
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
Adds binder’s values in buffer, the interleaved vertex of the paint values, as the attributes attributes to read, or records the properties of those names in uniforms where the property is constant or has no values.
paint_attributes
The attributes read of vertices, the vertices of buffer, and uniforms: what a layer’s set of binders binds.

Type Aliases§

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