Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit f181cf5

Browse files
authored
fix: update ktx2 doc (#1004)
1 parent 6929c04 commit f181cf5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/graphics-texture-compression.zh-CN.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@ KTX2 的生成可以使用:
3636
## 兼容性
3737

3838
KTX2 转码使用到了 WebAssembly 技术,需要使用 Chrome 57+,和 iOS 11.3+(11.0 ~ 11.2.以下的 WebAssembly 存在 [bug](https://bugs.webkit.org/show_bug.cgi?id=181781)
39+
40+
iOS 16 以下系统,在通过 worker 加载必要的 KTX2 解析 wasm 文件时会概率发生无返回的情况,尤其是在 wasm 首次加载时概率较大。可以通过 iOS 不走 worker 来绕过去:
41+
42+
```typescript
43+
WebGLEngine.create({ canvas: "canvas", ktx2Loader: { workerCount: 0 } });
44+
```

0 commit comments

Comments
 (0)