webgpu.hpp generator

What is this?

The WebGPU spec provides a webgpu.h C API. But when using C++, it is confortable to use a C++ wrapper, called webgpu.hpp here, that provides C++ idioms at zero overhead. Learn More about the features of webgpu.hpp.

Different implementations of WebGPU provide a slightly modified version of the webgpu.h C API, which makes it hard to maintain a single webgpu.hpp wrapper. So this website provides an automatic generator, to which you can provide the webgpu.h of your choice.

You may run the Python generator yourself by pulling this GitHub repo: eliemichel / WebGPU-Cpp.

Generator

Input Select the webgpu.h file for which you need the webgpu.hpp wrapper:
(webgpu.h and extensions like wgpu.h)
Advanced These extra options are directly passed to generate.py.
(loading...)
: