Learn WebGPU
Basics: WebGPU concepts and setup

Initializing WebGPU

Learn how to obtain a WebGPU adapter and device.

Learning steps

WebGPU is a new API that brings high-performance graphics and compute to the web.

Key concepts:

  • Adapter — represents access to a physical GPU.
  • Device — your interface for talking to that GPU.
  • Queue — handles command submission to the GPU.

Let's start by checking whether WebGPU is available.

Task

Run the code until the console shows "WebGPU initialized successfully!"

Progress 0 / 3 completed

WebGPUを初期化中...

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

Learn WebGPU — interactive tutorials for learning WebGPU

GitHub