diff --git a/apps/docs/content/docs/integrations/react-native-skia.mdx b/apps/docs/content/docs/integrations/react-native-skia.mdx index 9746c15d9..05ad90cae 100644 --- a/apps/docs/content/docs/integrations/react-native-skia.mdx +++ b/apps/docs/content/docs/integrations/react-native-skia.mdx @@ -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. diff --git a/packages/webgpu/CONTRIBUTING.md b/packages/webgpu/CONTRIBUTING.md index 6aa5089d4..3f2371a94 100644 --- a/packages/webgpu/CONTRIBUTING.md +++ b/packages/webgpu/CONTRIBUTING.md @@ -52,7 +52,7 @@ Steps to bump to a new Dawn (new Skia milestone `m`): 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`).