File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
# WebGPU Example
2
2
3
- Install Swift 6.2 development snapshot and Swift SDK for Wasm by following
4
- https://www.swift.org/documentation/articles/wasm-getting-started.html .
3
+ Install Swift 6.2 (or later version) and a corresponding Swift SDK for Wasm by following
4
+ [ "Getting Started with Swift SDKs for WebAssembly" article ] ( https://www.swift.org/documentation/articles/wasm-getting-started.html ) .
5
5
6
6
Build with the installed Swift SDK using JavaScriptKit's ` PackageToJSPlugin ` plugin. Make sure to update
7
- the Swift SDK in the following command to the version that matches your installed swift.org toolchain.
7
+ the Swift SDK in the following command to the version that matches your installed Swift toolchain.
8
8
```
9
- swift package --swift-sdk swift-6.2-DEVELOPMENT-SNAPSHOT-2025-06-17-a_wasm js --use-cdn
9
+ swift package --swift-sdk swift-6.2-RELEASE_wasm js --use-cdn
10
10
```
11
11
12
12
If you'd like to produce a smaller binary (under 400 kB), you'll have to use
@@ -19,7 +19,7 @@ your installed toolchain version if needed):
19
19
swift package --swift-sdk swift-DEVELOPMENT-SNAPSHOT-2025-08-11-a_wasm-embedded js --use-cdn -c release
20
20
```
21
21
22
- WebGPU is enabled by default in beta and technical preview versions of Safari. Safari 17 and 18 require enabling
22
+ WebGPU is enabled by default in Safari 26 . Safari 17 and 18 require enabling
23
23
WebGPU feature flag as shown on the screenshot:
24
24
25
25
<img width =" 833 " alt =" Safari Feature Flags settings tab with WebGPU enabled " src =" https://github.com/user-attachments/assets/7d0453ab-da51-4a6e-85da-dc466cf775be " />
You can’t perform that action at this time.
0 commit comments