Start5 of 5
Platforms
Browser and React Native requirements for running TypeGPU Kit.
WebGPU
Section titled “WebGPU”The kit requires core WebGPU. The kit’s can read vertices from in the vertex stage. A compatibility-mode device can have a limit of zero for those buffers. A uses up to three of the four , as its limits say.
Chrome and Edge
Section titled “Chrome and Edge”Use a browser with WebGPU enabled. WebGPU requires HTTPS outside localhost.
Safari
Section titled “Safari”Safari compiles pipelines one at a time and builds Metal state at the first draw or . Compile the pipelines under a loading screen with initAsync or pipelines.compile. Then draw behind the loading screen until frame times settle. Wrap vec3 uniforms in structs to avoid Metal packing errors.
Firefox
Section titled “Firefox”Reuse texture views and bind groups across frames because Firefox retains them until garbage collection.
React Native on iOS and Android
Section titled “React Native on iOS and Android”Use react-native-webgpu. Setting up a project gives the versions, and the Babel, Metro and configuration for hosted scenes.
- Hermes lacks
Array.prototype.toSorted. Copy an array before sorting it. - Each draw costs JavaScript time on Hermes, so use fewer, larger draws. Set the pipeline on the pass once with
pass.setPipeline(pipeline)and draw through the pass. - Import kit subpaths, such as
@typegpu/kit/frames, since Metro keeps every file it reaches. - Pause GPU work while the app is in the background.
- A device used across threads requires
implicit-device-synchronization. react-native-webgpu requests it for every device unless you passimplicitDeviceSynchronization: false. A that runs its scene off the JS thread throws for a device without it.
Device features
Section titled “Device features” that use firstInstance require the indirect-first-instance feature. Request it, and check device.features.has after creating the device. Live lists with firstInstance: true throw without it. Direct draws need no feature.
iOS simulator and older iPhones
Section titled “iOS simulator and older iPhones”Shadow maps use comparison . On pre-A9 GPUs and the iOS simulator, they need Dawn built for iOS 16 or later. For an older deployment target, use textureGather and compare depth in the shader.
© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.