Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions apps/docs/content/docs/integrations/react-native-skia.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,7 @@ With React Native Skia v2 (published as `@shopify/react-native-skia` up to 2.14)

## Compatibility

Because the two packages share Dawn, React Native Skia v3 and React Native WebGPU must be built against the same Dawn release, which means installing them at matching versions. Pick one row and install versions from it:

| React Native WebGPU | React Native Skia |
| --- | --- |
| 0.21.3 and later | 3.10.0 and later |
| 0.20.0 to 0.21.2 | 3.9.0 to 3.9.2 |
| 0.17.0 to 0.19.2 | 3.7.0 to 3.8.1 |
| 0.13.1 to 0.16.1 | 3.4.0 to 3.6.3, or 3.0.8 |
| 0.13.0 | 3.1.0 to 3.3.0, or 3.0.8 |
| 0.12.1 | 3.0.6 to 3.0.8, or 3.1.0 and later |
| 0.10.0 to 0.11.2 | 3.0.0 to 3.0.5 |
Because the two packages share Dawn, React Native Skia v3 and React Native WebGPU must be built against the same Dawn release, which means installing them at matching versions. The table of compatible versions is maintained in the [React Native Skia documentation](https://wcandillon.github.io/react-native-skia/docs/webgpu).

For SDK-archive integration, both packages must pin the same release version and `dawn.commit` in `binaries.json`. WebGPU supplies Dawn; Skia must use its compatible external-Dawn integration so the app links one copy. A mismatch fails with `Dawn version mismatch`. The older binary-npm integrations follow their release-specific installation instructions.

Expand Down
2 changes: 1 addition & 1 deletion packages/webgpu/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Steps to bump to a new Dawn (new Skia milestone `m<N>`):

4. **Map the new feature names.** A milestone usually adds `wgpu::FeatureName` values. Add them to `RNWGPU_FOR_EACH_FEATURE_NAME` in `cpp/rnwgpu/api/GPUFeatures.h`, which is the single list both conversion directions are generated from; `src/__tests__/FeatureNames.spec.ts` diffs it against the installed `webgpu_cpp.h` and fails when one is missing.

5. **Update the compatibility table** in `apps/docs/content/docs/integrations/react-native-skia.mdx` with the new milestone row, so users can pair react-native-webgpu and `react-native-skia` versions.
5. **Update the compatibility table** in the [React Native Skia documentation](https://wcandillon.github.io/react-native-skia/docs/webgpu) with the new milestone row, so users can pair react-native-webgpu and `react-native-skia` versions. The React Native WebGPU docs link to it rather than keeping a copy.

6. **Build both platforms.** A milestone can also change Dawn's C++ API surface, not just add features — e.g. `chrome-m154` turned `SharedTextureMemory::BeginAccess`/`EndAccess`, `Adapter::GetLimits`, `Device::GetLimits`, and `SharedTextureMemory::GetProperties` from a bool-ish return into `wgpu::Status` (no implicit bool conversion), breaking every `if (!result)` / `if (result)` call site in `cpp/rnwgpu/api/*.cpp`. Building iOS and Android is the way these surface; fix by comparing explicitly (`result == wgpu::Status::Success`).

Expand Down
Loading