Skip to content

Commit 2355eb4

Browse files
authored
Update README.md
1 parent b339b60 commit 2355eb4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

WebGPUDemo/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ the Swift SDK in the following command to the version that matches your installe
99
swift package --swift-sdk swift-6.2-DEVELOPMENT-SNAPSHOT-2025-06-17-a_wasm js --use-cdn
1010
```
1111

12+
If you'd like to produce a smaller binary (under 400 kB), you'll have to use
13+
`swift-DEVELOPMENT-SNAPSHOT-2025-08-11` or later development snapshot of the `main` Swift toolchain
14+
branch. Earlier versions (including Swift 6.2) have no support for `async` functions in Embedded Swift,
15+
which is required for WebGPU setup. Use the following command to build with Embedded Swift (update for
16+
your installed toolchain version if needed):
17+
18+
```
19+
swift package --swift-sdk swift-DEVELOPMENT-SNAPSHOT-2025-08-11-a_wasm-embedded js --use-cdn -c release
20+
```
21+
1222
WebGPU is enabled by default in beta and technical preview versions of Safari. Safari 17 and 18 require enabling
1323
WebGPU feature flag as shown on the screenshot:
1424

0 commit comments

Comments
 (0)