pub(crate) fn mesh_source(
world: &World,
) -> Option<(RenderEntity, LitPipelineKey)>Expand description
The render world’s mesh source and the pipeline key its server jobs use.
The key is the one installed in the render world: a caller that spawns
an LitPipelineKey component chooses the options. Without one the
standard unlit options are built from the mesh source’s device, so a
caller that only wants the built-in look never has to touch a device.
For a pipeline of the caller’s own, register a family and allocate
through unlit3d’s MeshSource directly; the world is the same
registry either way.