Sample app that shows how to use React Native implementation of WebGPU using Dawn. This sample is based on @wcandillon's example app.
To run the webgpu app you first need to build Dawn or download the prebuilt binaries.
From there you will be able to run the example app properly.
Steps to run the app:
yarn install
yarn pod:install:ios
yarn build:ios
xed iosSelect your development team in Xcode.
yarn iosTo run the React Native WebGPU project on the iOS simulator, you need to disable the Metal validation API. In "Edit Scheme," uncheck "Metal Validation."
Something's wrong with react-native build-ios configuration, as it fails to autoinstall Pods. Workaround for now is
to disable automaticPodsInstallation in react-native.config.js and run yarn pod:install:ios manually
Keep @react-native-community/cli at v15 due to facebook/metro#1453 (comment)
Download the prebuilt binaries from GitHub. You need to have the Github CLI installed:
yarn
yarn download-artifacts
yarn copy-artifactsAlternatively you can also download the prebuilt binaries here.