tree: 1657304eb84b2e33bec084946122462b61bb0429 [path history] [tgz]
  1. README.md
  2. webgpu.h
  3. webgpu_cpp.h
system/include/webgpu/README.md

These files, and several snippets of other files, are generated by Dawn (Chromium's WebGPU library):

The C header is mostly the same as the “upstream” webgpu.h, but native-specific elements are not included.

The C++ files are currently Dawn-specific, but included in Emscripten for better compatibility with Dawn: it has roughly the same API as Dawn's copy, but is included here because it is strongly tied to an exact webgpu.h revision.

Dawn additionally autogenerates two “snippets” that are used in Emscripten:

Once that's done, the following file also needs to be rebaselined: