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 a work-in-progress on GitHub, and the implementation may differ from the current API.

Make sure you are on a system with WebGPU enabled. In Safari, first make sure the Feature Flags Menu is visible (Preferences > Advanced > Show features for web developers), then ensure Preferences > Feature Flags > WebGPU is checked.

WebGPU is an experimental technology, and you should not browse the entire Web with it enabled for now. It doesn't do much validation of content, and thus may cause some issues with your computer.


Hello World Triangle

Hello World Cube

Textured Cube

Compute Shader Blur

Using a video element with WebGPU

Sorting with WebGPU

Compute Shader Flocking

Cornell Box rendering
WebGPU port of the Animometer MotionMark benchmark