Skip to main content

Module native

Module native 

Source
Expand description

In-process stub host for running a guest natively (non-wasm targets).

It implements the same ABI as the runners’ headless mode: no display or audio, virtual time, and FNV-1a hashes over presented frames, audio and gfx buffer writes. A harness sets assets/params/input, calls the guest’s gasm_init/gasm_frame, then reads stats. Hashes match gasm-run --headless for deterministic guests.

Modules§

abi
Same signatures as the wasm imports (see sys.rs).

Structs§

Stats

Functions§

end_frame
Call after each gasm_frame so time_ms advances.
set_asset
Harness API.
set_hashing
set_pad
set_param
set_text
Text returned by text_input until the next end_frame.
stats