WebGPU Quick Reference

What is WebGPU?

WebGPU is a future web standard and JavaScript API for interfacing with the GPU, the graphics processing unit. It is based on concepts of other modern graphics APIs such as Vulkan, Metal, and Direct3D 12. The specification is under development.

What’s on this website?

This is a quick reference for WebGPU. While the WebGPU specification aims to describe the API as accurately and detailed as possible, this reference provides an easy to navigate API summary for daily use.

For now, this is not a detailed introduction or programming guide.

Getting started

Let’s say you want to create a GPUDevice object.

  • Select GPUDevice from the list of interfaces on the left.
  • The first line(s) show you where to look for creating a GPUDevice. You see immediately that GPUAdapter provides a .requestDevice() method.
  • Click on any method name to expand all information you need in order to prepare the arguments for calling this method.
  • Click on any type name to get detailed information about it.

Are these pages up to date?

The WebGPU specification is still under development and changes frequently. These reference pages are auto-created regularly from the WebGPU editor’s draft specification, as available on Github. If you find them outdated, drop me a message.