import type { TWebGPUDevice } from "./TWebGPUDevice"; export type TWasmModuleOptions = { locateFile: (path: string, prefix: string) => string; noInitialRun: boolean; canvas: HTMLCanvasElement; preRun: (Module: any) => void; preinitializedWebGPUDevice?: TWebGPUDevice; /** * Emscripten hook to supply an already-compiled `WebAssembly.Module`. When set, Emscripten skips * its own fetch+compile and calls this with the imports to bind; the callback receives the * instantiated module. Built via `buildInstantiateWasmHook` from a cached compiled module. */ instantiateWasm?: (imports: WebAssembly.Imports, successCallback: (instance: WebAssembly.Instance, module: WebAssembly.Module) => void) => {}; };