Skip to main content

Crate konjure_sdk

Crate konjure_sdk 

Source
Expand description

Portable deterministic Konjure SDK core. The compiler is optional; runtime consumers can build --no-default-features and load validated documents.

Construct or compile a SceneDocument, validate untrusted documents with validate, then create a Runtime to sample frames or dispatch declared actions. The core owns its scene and derived mesh allocations; it performs no I/O, rendering, clock reads, or external effects.

use konjure_sdk::{compile, Runtime};
let runtime = Runtime::new(compile("scene dot { node star { sphere 0.2m; color #ffffff; } }")?)?;
assert_eq!(runtime.sample(0.0)?.draws.len(), 1);

Re-exports§

pub use validation::validate;
pub use domain::*;
pub use geometry::*;
pub use presentation::*;
pub use recording::*;
pub use runtime::*;

Modules§

data
Exact numeric values, immutable buffers, tensors, and validated media payloads. Immutable typed data shared by the SDK, language, and host adapters.
domain
Scene documents, observations, identifiers, diagnostics, and SDK limits.
geometry
Deterministic tessellation of built-in scene geometry.
presentation
Portable semantic UI documents and explicit per-view presentation routing. Portable semantic UI documents and per-view presentation routing.
recording
Ordered, side-effect-free recordings of runtime decisions. Ordered decisions with explicit scene time. Seeking backwards is permitted; replay preserves decision order and never executes proposed external effects.
runtime
Headless scene evaluation, action dispatch, and frame output.
validation
Structural and numeric validation for untrusted scene documents.

Functions§

compile
Compiles bounded Konjure DSL source into a validated scene document.