mirror of
https://github.com/cocos/cocos-engine.git
synced 2026-09-06 15:48:37 +08:00
* support pal/wasm module pal/wasm * support sys.Feature.WASM and WASM_SUPPORT_MODE # Conflicts: # pal/system-info/web/system-info.ts # Conflicts: # pal/system-info/web/system-info.ts # Conflicts: # pal/system-info/web/system-info.ts * optimize bullet module * update physx module update * revert tsconfig * optimize WebGPU wasm import * fix native wasm instantiate * support wasm in EDITOR and PREVIEW * optimize variable name * update comment * optimize code * Update cocos/misc/webassembly-support.ts * add physx wasm (#11) by yiwenxue * add physx wasm * update physx wasm instantiate. * update, rename, etc. * download external in CI * fix physX wasm init * move out external wasm type * update external-config.json * expand node max-old-space-size * use console.debug --------- Co-authored-by: Yiwen <15225434259xue@gmail.com>
12 lines
590 B
TypeScript
12 lines
590 B
TypeScript
declare module 'pal/wasm' {
|
|
/**
|
|
* The first parameter of standard `Webassembly.instantiate` interface is the arraybuffer of wasm.
|
|
* But the implementation on some platforms is not standard.
|
|
* So here we provide a more commonly used interface, whose first parameter is the url of wasm.
|
|
*
|
|
* @param wasmUrl the url of wasm, this should be a url relative from build output chunk.
|
|
* @param importObject the standard `WebAssembly.Imports` instance
|
|
*/
|
|
export function instantiateWasm (wasmUrl: string, importObject: WebAssembly.Imports): Promise<any>;
|
|
}
|