pub fn encode_scene(scene: &Scene) -> Result<Vec<u8>, EncodeSceneError>Expand description
Encodes scene as a scene chunk payload. Its meshes go in mesh chunks of
their own, in order.
Each subtree is listed right after its root, or after the subtree before it when that comes later. Nodes without a place are written as they are, so the indices other chunks use stay valid, but a program building a scene should not leave any.