Skip to main content

render

Function render 

Source
pub async fn render(config: &Config) -> Result<Frame, Error>
Expand description

Render the configured documents into an RGBA8 frame.

The output size is output.size, or output.render_size when size is absent. The render size defaults to the output size. The viewport is the render size scaled by output.scale’s x and y factors and centred in the output. Nothing is resampled, because the one output-sized texture is what the scene draws into.

§Errors

Fails when the configuration is incomplete or inconsistent, a document or its animation cannot be read, or the GPU cannot provide an adapter.