Expand description
Safe, host-agnostic Rust Plugin SDK for MapLibre Native (mln-rs).
This crate has zero dependencies on mln_engine, mln_style, mln_gfx,
or mln_c. A plugin crate written against mln_plugin registers directly
into mln_engine::RegistryBuilder (native and Wasm) or over the C Plugin
ABI via mln_plugin_c.
Re-exports§
pub use error::Error;pub use error::Result;pub use error::Status;pub use layer::AfterGpu;pub use layer::AfterGpuRef;pub use layer::Composite;pub use layer::DrawGroup;pub use layer::Draws;pub use layer::EvaluateCx;pub use layer::EvaluatedLayer;pub use layer::Evaluation;pub use layer::Frame;pub use layer::FrameQueryCx;pub use layer::GroundHeights;pub use layer::Hit;pub use layer::HitCx;pub use layer::HitInfo;pub use layer::Host;pub use layer::IndexBuffer;pub use layer::LayerBlend;pub use layer::LayerDesc;pub use layer::LayerInstance;pub use layer::LayerPlugin;pub use layer::LendParameters;pub use layer::LoadedFeatureInfo;pub use layer::Mesh;pub use layer::MeshDesc;pub use layer::PaintAttributes;pub use layer::PrepareCx;pub use layer::PropertyDefault;pub use layer::PropertyDesc;pub use layer::PropertyScope;pub use layer::RasterTileInfo;pub use layer::Resources;pub use layer::Target;pub use layer::Texture;pub use layer::Tile;pub use layer::TileBuildCx;pub use layer::TileCx;pub use layer::TileGeometry;pub use layer::TileGeometryBuilder;pub use layer::UpdateCx;pub use layer::VertexAttribute;pub use layer::VertexBinding;pub use layer::VertexBuffer;pub use layer::View;pub use program::AttributeDesc;pub use program::AttributeFormat;pub use program::BlockDesc;pub use program::BlockMember;pub use program::BlockMemberType;pub use program::BufferDesc;pub use program::BufferKind;pub use program::GlslEsAttributePrecision;pub use program::GlslEsMemberPrecision;pub use program::GlslEsSource;pub use program::GlslPrecision;pub use program::GlslSource;pub use program::MslSource;pub use program::Program;pub use program::ProgramDesc;pub use program::ProjectionMode;pub use program::ShaderStages;pub use program::TextureDesc;pub use program::TextureRead;pub use program::Variants;pub use program::WgslSource;pub use source::GeometrySourceOptions;pub use source::RasterDemSourceOptions;pub use source::SourceKindOptions;pub use source::SourcePlugin;pub use source::SourceTypeOptions;pub use source::TileCancelInfo;pub use source::TileFetchInfo;pub use source::TileRequest;pub use source::TileResponse;pub use types::Alignment;pub use types::CanonicalTileId;pub use types::CollisionShape;pub use types::CollisionShapeKind;pub use types::Color;pub use types::ColorMode;pub use types::CullFaceMode;pub use types::CullFaceSide;pub use types::CullFaceWinding;pub use types::D3d12Encoder;pub use types::D3d12Pass;pub use types::DepthMode;pub use types::DrawMode;pub use types::DrawOptions;pub use types::DrawRange;pub use types::FeatureType;pub use types::FrameInfo;pub use types::GpuEnd;pub use types::LatLng;pub use types::LatLngBounds;pub use types::LayerInput;pub use types::LendAt;pub use types::LendEncoder;pub use types::LendFrame;pub use types::LendPass;pub use types::LendStage;pub use types::MapMode;pub use types::MetalEncoder;pub use types::MetalPass;pub use types::OpenGlEncoder;pub use types::OpenGlPass;pub use types::PointI16;pub use types::ProjectedPoint;pub use types::ProjectionUbo;pub use types::ProjectionVariant;pub use types::RasterEncoding;pub use types::RenderBackend;pub use types::RenderPasses;pub use types::SamplerState;pub use types::ScreenPoint;pub use types::TerrainMode;pub use types::TextureChannelType;pub use types::TextureFilter;pub use types::TextureFormat;pub use types::TextureWrap;pub use types::TileChanges;pub use types::TileId;pub use types::TileNecessity;pub use types::TileOrder;pub use types::TileScheme;pub use types::TileTimes;pub use types::TileTransform;pub use types::Vec2;pub use types::ViewInfo;pub use types::VulkanContextDescriptor;pub use types::VulkanEncoder;pub use types::VulkanPass;pub use types::WebGpuEncoder;
Modules§
- error
- Status codes and diagnostic errors returned by plugin host calls.
- layer
- Safe, host-agnostic traits, descriptors, contexts, and RAII GPU handles for layer plugins.
- program
- Host-agnostic shader program descriptors and owned
Programhandles. - shaders
- Reusable shader snippets for standing terrain plugin layers.
- source
- Safe, host-agnostic traits and async
TileRequesthandle for source plugins. - types
- Host-agnostic value types shared across plugin layers and sources.