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.