Skip to main content

take_render_backend

Function take_render_backend 

Source
pub fn take_render_backend(world: &mut World) -> Option<Box<dyn RenderBackend>>
Expand description

Take the live render backend out of the world’s parked slot, leaving the world backend-less. The cn editor live SAVE swap transplants it into the rebuilt world (via a PendingBackend resource) so the edit applies without recreating the OS window / re-initialising the GPU device. None when the world never built a backend (or it was already yielded).