pub fn setup_render_world(
host: &mut World,
render_world: Entity,
device: &Device,
queue: &Queue,
capabilities: DeviceCapabilities,
) -> (RenderEntity, RenderEntity)Expand description
Set up the render sub-world: the resource graph, the renderer, the pass its sources draw into, and the asset-server source. Answers the renderer resource entity and the pass entity.
This is the whole of what a render world needs before it can draw, and none of it is this scene’s: no camera, no shape, no panel. Everything the scene puts in the world — meshes, materials, instances, poses, camera, UI — arrives as a job, through the sub-world’s drain in the draw behaviour.