Skip to main content

Module engine

Module engine 

Source

Re-exports§

pub use rendering::PickSource;
pub use rendering::DEFAULT_THUMB_SIZE;
pub use save::SaveError;
pub use save::SaveJob;
pub use save::SavePurpose;
pub use save::SaveReadbackKind;
pub use types::BlendModeTypeInfo;
pub use types::ClipboardExport;
pub use types::EngineState;
pub use types::LayerInfo;
pub use types::LayerKindTypeInfo;
pub use types::ModifierInfo;
pub use types::ModifierTypeInfo;
pub use types::ParamInfo;
pub use types::StrokeOp;
pub use types::ToolTypeInfo;
pub use types::VeilInfo;
pub use types::VeilTypeInfo;
pub use types::VoidTypeInfo;

Modules§

protocol
Async request/response protocol — the engine-side dispatch surface.
rendering
Rendering, view transform, thumbnails, undo/redo, and async readback polling.
save
.darkly save flow — async readback of every pixel-bearing texture plus the composite, gathered into a SaveBundle for JS to encode and zip.
types
FFI/serialization types — serde-serializable for any WASM bridge.

Structs§

BrushPerfDelta
Per-interval brush perf delta returned by crate::engine::DarklyEngine::drain_brush_perf_delta. Scalars are differences against the previous snapshot; vectors are taken whole-cloth from the current counter (and reset to empty there).
DarklyEngine
ExportImageResult
Completed export readback — drained by poll_export_result.
FrameRenderPhases
Most recent engine.render() sub-phase timings, in microseconds. Overwritten each frame. Read by the WASM bridge’s slow-frame log so the breakdown is surfaced alongside the bridge-side drain/render timing without having to plumb a return value out of render.
LoadDocument
Public marker re-export so the WASM bridge can name the engine-side “loaded document” capability without importing the load module directly. Empty today; reserved for future expansion (e.g. progress callbacks).

Enums§

PreviewKind
Which kind of effect a picker preview is generating. Keys the shared previews map alongside the effect’s 'static type id, so a veil and a void that happen to share a type-id string never collide.