Learn WebGPU
Advanced: Compute shaders and graphics

Particle system

Update particles with a compute shader.

Learning steps

Compute shaders are for general-purpose computation, not just drawing.

Characteristics:

  • Optimized for parallel work.
  • Great for large data sets.
  • Independent of the graphics pipeline.

Workgroups:

  • Group multiple threads together.
  • Shared memory within a group.
  • Can have a 3D size.

Task

Update particle positions in a compute shader.

Progress 0 / 3 completed

WebGPUを初期化中...

コンソール
コンソール出力がここに表示されます

Learn WebGPU — interactive tutorials for learning WebGPU

GitHub