Learning by examples

Every lesson has examples you can edit and run in your browser with the Playground. Change the code, press Run, and see the result straight away.

Example

A complete WebGPU fragment shader:

@fragment
fn fragmentMain() -> @location(0) vec4f {
  return vec4f(0.49, 0.95, 0.61, 1.0);
}
Edit & Run »

Getting started

Going 3D

Advanced

Official WebGPU documentation

Every lesson ends with links to the matching pages of the official references. These are the ones to bookmark.

All WebGPU and GPU resources →