English
Function: detectWasmSimd()
detectWasmSimd():
boolean
Defined in: ssplayer-core/dist/index.d.ts:2239
Detect WebAssembly SIMD (simd128) support in the current engine. Zero-dependency and synchronous: WebAssembly.validate accepts the module below only when the engine supports the v128 opcodes it contains. The result is cached.
The bundled ssruntime is compiled with +simd128, so it fails to instantiate on engines where this returns false. Callers should check this first to fail fast with a clear message instead of a cryptic WebAssembly.instantiate error. SIMD is enabled by default in Chrome/Edge 91+, Firefox 89+, and Safari 16.4+.
Returns
boolean