| 30 | * We can use Emscripten generated js Module as a { wasmLibraryProvider: LibraryProvider }. |
| 31 | */ |
| 32 | export interface LibraryProvider { |
| 33 | /** The imports that can be passed to WebAssembly instance creation. */ |
| 34 | imports: Record<string, any>; |
| 35 | /** |
| 36 | * Callback function to notify the provider the created instance. |
| 37 | * @param inst The created instance. |
| 38 | */ |
| 39 | start: (inst: WebAssembly.Instance) => void; |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Disposable classes that contains resources (WasmMemory, GPU buffer) |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…