WebGPU Compute Playground

Result

WebGPU Compute Playground

Editor to try out and share WebGPU compute shader snippets.

Define a fn compute() -> f32 function in the editor.

The compute shader is executed continuously as you type, and the result is shown below the editor.

The page URL is updated with the current code for shareability.

Source: github.com/fornwall/webgpu-compute-playground