Skip to main content

serve_stdio_offscreen

Function serve_stdio_offscreen 

Source
pub fn serve_stdio_offscreen(
    size: (u32, u32),
    samples: u32,
    depth: bool,
) -> Result<(), Error>
Expand description

Serve an empty offscreen world over MCP stdio.

The world lives on a render thread of its own; the transport thread only forwards commands to it, exactly as a windowed host forwards them to its event loop. A browser has no stdio to serve, so this exists only off wasm.

ยงErrors

Fails when no adapter is available, when the render thread cannot start, or when the transport fails.