Skip to main content

PreparedComposition

Trait PreparedComposition 

Source
pub trait PreparedComposition: Send + Sync {
    // Required method
    fn render(&self, frame: u32) -> Result<Scene, CompositionError>;
}
Expand description

A composition instance prepared once for a complete render job.

Implementations may cache parsed input, compiled scripts, and other immutable state here. render can be called concurrently for different frames.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§