Image

WebGPU Examples

A collection of simple WebGPU examples can be found at webgpu.github.io. They should work in the latest WebKit builds and Safari Technology Preview release. The full specification is currently a W3C Candidate Recommendation and WebKit's implementation is aligned with it.

Make sure you are on a system with WebGPU enabled. WebGPU is enabled in Safari Technology Preview and Safari 26.0 beta.

Image
Hello World Triangle
Image
Hello World Cube
Image
Textured Cube
Image
Compute Shader Blur
Image
Using a video element with WebGPU
Image
Sorting with WebGPU
Image
Compute Shader Flocking
Image
Cornell Box rendering
Image WebGPU port of the Animometer MotionMark benchmark