mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-21 05:50:55 +08:00
- 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.
39 lines
707 B
JSON
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"
|
|
}
|
|
]
|
|
}
|