Files
scriptc/tests/library-mode/wasm/three.json
Chris Tate c7b11a9242 Compile embeddable Wasm modules with host imports
- Emit callable Wasm reactors with explicit exports, host callbacks, and independent instance memory.
- Compile three.js scene and geometry workloads into Wasm without an embedded JavaScript engine.
- Document initialization, memory ownership, and external browser hosting.
2026-09-30 01:09:15 -05:00

39 lines
707 B
JSON

{
"profile_format": 1,
"name": "three-wasm-embedding",
"entry": "three.mjs",
"emission": "llvm",
"npm_static": ["three"],
"abi": {
"prefix": "app_",
"init_symbol": "app_init",
"sink_register_symbol": "app_sink",
"callback_register_symbol": "app_callback",
"collect_symbol": "app_collect",
"result_reset_symbol": "app_reset_results"
},
"callbacks": [
{
"name": "vertex",
"params": [
"u32",
"f64",
"f64",
"f64"
],
"returns": "void"
}
],
"exports": [
{
"export": "frame",
"symbol": "app_frame",
"params": [
"f64",
"f64"
],
"returns": "f64"
}
]
}