Skip to main content

Module types

Module types 

Source
Expand description

Host-agnostic value types shared across plugin layers and sources.

Structs§

CanonicalTileId
Canonical tile coordinate (z, x, y).
CollisionShape
A shape that a frame’s placement tested for a label or an icon (Frame::collision_shapes).
Color
Straight (non-premultiplied) extended-sRGB RGBA color.
CullFaceMode
Face culling configuration for a mesh.
D3d12Encoder
Direct3D 12 device and command list lent before passes begin.
D3d12Pass
Direct3D 12 render pass lent at a layer’s place.
DrawOptions
Per-draw submission options.
DrawRange
One indexed draw call range within a mesh.
FrameInfo
Snapshot of frame-level parameters (sizes in device pixels).
LatLng
Geographic coordinate in WGS84 degrees.
LatLngBounds
Geographic bounding box.
LendFrame
Frame camera, projection, and attachment dimensions during a lent GPU callback.
MetalEncoder
Metal encoder lent before passes begin.
MetalPass
Metal render pass lent at a layer’s place.
OpenGlEncoder
OpenGL or WebGL2 context lent before passes begin.
OpenGlPass
OpenGL or WebGL2 framebuffer lent at a layer’s place.
PointI16
Tile-space integer point.
ProjectedPoint
Result of projecting a tile point through the active projection.
ProjectionUbo
Per-draw tile projection uniform block.
RenderPasses
Render pass bitmask.
SamplerState
Texture sampler configuration.
ScreenPoint
Screen-space coordinate in logical pixels from top-left.
TileChanges
Tile change bitmask reported by PrepareCx::take_tile_changes.
TileId
Overscaled and wrapped tile coordinate.
TileTimes
Cache timestamps for a delivered plugin source tile.
TileTransform
Tile transform parameters for Frame::tile_projection.
Vec2
Two-component float vector.
ViewInfo
Snapshot of camera view parameters (sizes in logical pixels, angles in radians).
VulkanContextDescriptor
Vulkan device/queue handles exposed to a lent GPU callback.
VulkanEncoder
Vulkan command buffer lent before passes begin.
VulkanPass
Vulkan render pass lent at a layer’s place.
WebGpuEncoder
WebGPU device and command encoder object IDs lent before passes begin.

Enums§

Alignment
Translate anchor or pitch alignment frame of reference.
CollisionShapeKind
The geometry of a CollisionShape, in logical pixels from the view’s top-left corner.
ColorMode
Color blend mode preset for a mesh.
CullFaceSide
CullFaceWinding
DepthMode
Depth testing mode for a draw call.
DrawMode
Primitive draw mode for a mesh.
FeatureType
Vector tile feature geometry type.
GpuEnd
How the GPU work waited on by crate::AfterGpu::push ended.
LayerInput
What input data drives a plugin layer’s per-frame preparation.
LendAt
When in a frame the renderer lends raw backend GPU commands to a layer.
LendEncoder
Raw backend GPU encoder lent outside the map’s render pass (LendAt::BeforePasses).
LendPass
Raw backend GPU render pass lent at the layer’s place (LendAt::Pass).
LendStage
Stage-specific payload inside crate::LendParameters.
MapMode
Map rendering mode.
ProjectionVariant
Active projection variant for shader compilation.
RasterEncoding
Elevation encoding for RasterDem plugin sources.
RenderBackend
Graphics backend active for a render session.
TerrainMode
How a plugin layer interacts with 3D terrain.
TextureChannelType
Render target color channel type.
TextureFilter
Texture sampler filter mode.
TextureFormat
Texture texel format.
TextureWrap
Texture sampler wrap mode.
TileNecessity
Tile urgency reported to plugin sources.
TileOrder
Order in which tiles are passed to a layer’s prepare callback.
TileScheme
Whether a plugin source counts tile rows from the north (XYZ) or south (TMS).