()
| 29 | I3SDecoder._promise = undefined; |
| 30 | |
| 31 | async function initializeDecoder() { |
| 32 | const result = await I3SDecoder._decodeTaskProcessor.initWebAssemblyModule({ |
| 33 | wasmBinaryFile: "ThirdParty/draco_decoder.wasm", |
| 34 | }); |
| 35 | if (result) { |
| 36 | return I3SDecoder._decodeTaskProcessor; |
| 37 | } |
| 38 | |
| 39 | throw new RuntimeError("I3S decoder could not be initialized."); |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Transcodes I3S to glTF in a web worker |
no outgoing calls
no test coverage detected
searching dependent graphs…