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 11# WebGPU Example
22
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 ) .
55
66Build 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.
88```
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
1010```
1111
1212If 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):
1919swift package --swift-sdk swift-DEVELOPMENT-SNAPSHOT-2025-08-11-a_wasm-embedded js --use-cdn -c release
2020```
2121
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
2323WebGPU feature flag as shown on the screenshot:
2424
2525<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