Another project
1pub mod baker;
2pub mod icon;
3pub mod models;
4mod run;
5mod scenario;
6mod target;
7mod tree;
8
9pub use run::{JigError, RunResult, RunStatus, StepOutcome, StepRecord, run_scenario};
10pub use scenario::{
11 ArtifactName, ArtifactNameError, Modifier, NodeRef, NodeRefParseError, PointerTarget, Scenario,
12 ScenarioError, ScenarioSource, Step, modifier_mask,
13};
14pub use target::{Candidate, ResolveError, resolve_target};
15pub use tree::{DumpNode, DumpStates, TreeDump, TreeDumpError, TreeLoadError};
16
17use bone_render::{AdapterPolicy, OffscreenContext, Result, ViewportExtent, ViewportPx};
18
19pub const DEFAULT_VIEWPORT: ViewportExtent =
20 ViewportExtent::new(ViewportPx::new(1280), ViewportPx::new(800));
21
22pub fn offscreen_context(extent: ViewportExtent) -> Result<OffscreenContext> {
23 pollster::block_on(OffscreenContext::new(extent, AdapterPolicy::Software))
24}