Learn WebGPU
Basics: WebGPU concepts and setup

Canvas setup

Prepare a canvas to render with WebGPU.

Learning steps

To draw with WebGPU you first need the canvas's WebGPU context.

Steps:

  1. Get the canvas element.
  2. Call getContext('webgpu') on it.
  3. Configure it with a device and format.

Task

Get the WebGPU context from the canvas.

Progress 0 / 3 completed

WebGPUを初期化中...

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

Learn WebGPU — interactive tutorials for learning WebGPU

GitHub