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:
- Get the canvas element.
- Call
getContext('webgpu')on it. - Configure it with a device and format.
Task
Get the WebGPU context from the canvas.
Progress 0 / 3 completed
コンソール