Skip to main content

ensure_presented

Function ensure_presented 

Source
pub(crate) fn ensure_presented(app: Entity) -> OnFrame
Expand description

Build the scene and its surface, and short-circuit the frame until both are ready.

The scene’s world is spawned through the queue, so it lands on a later apply; the surface is built out of that world. Each frame retries, and the frames that cannot yet draw are skipped.