pub fn build_world(
config: &Config,
device: &Device,
queue: &Queue,
capabilities: DeviceCapabilities,
output_size: (u32, u32),
render_size: (u32, u32),
) -> Result<(World, Texture, Entity), Error>Expand description
Build the world a render draws, and the target it draws into.
Returns the world, the output-sized colour target, and the renderer entity. The world holds the render context, the renderer, the frame’s one pass, a mesh source, the configured documents and camera, and the pass’s viewport.
§Errors
Fails when a document or its animation cannot be read.