Skip to main content

Module headless

Module headless 

Source
Expand description

Offscreen rendering, input injection, and resource observations.

Structs§

HeadlessConfig
Configuration for a headless renderer session.
HeadlessRenderer
A deterministic, non-interactive Tessera renderer session.

Enums§

HeadlessError
Errors produced by headless session setup and the JSONL worker loop.

Constants§

HEADLESS_ENV
Environment variable that switches a Tessera application into headless mode.
HEADLESS_FRAME_TIME_MS_ENV
Environment variable overriding the virtual frame step in milliseconds.
HEADLESS_HEIGHT_ENV
Environment variable overriding the initial headless surface height.
HEADLESS_SCALE_FACTOR_ENV
Environment variable overriding physical pixels per density-independent pixel.
HEADLESS_WIDTH_ENV
Environment variable overriding the initial headless surface width.

Functions§

encode_png_rgba
Encodes tightly packed RGBA8 pixels as a PNG image.
headless_mode_requested
Returns whether the current process should run in headless mode.
run_headless
Runs the worker side of the cargo tessera headless protocol.
write_png_file
Writes a PNG file containing pixels and returns the byte length written.