Expand description
Offscreen rendering, input injection, and resource observations.
Structs§
- Headless
Config - Configuration for a headless renderer session.
- Headless
Renderer - A deterministic, non-interactive Tessera renderer session.
Enums§
- Headless
Error - 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 headlessprotocol. - write_
png_ file - Writes a PNG file containing
pixelsand returns the byte length written.