WebGPU Headers: WebGPU Headers (original) (raw)

Important: This documentation is a Work In Progress.

This is the home of WebGPU C API specification. We define here the standard [webgpu.h](webgpu%5F8h%5Fsource.html) header that all implementations should provide.

For all details where behavior is not otherwise specified, [webgpu.h](webgpu%5F8h%5Fsource.html) has the same behavior as the WebGPU specification for JavaScript on the Web. The WebIDL-based Web specification is mapped into C as faithfully (and bidirectionally) as practical/possible. The working draft of WebGPU can be found at https://www.w3.org/TR/webgpu/.

The standard include directive for this header is #include <webgpu/webgpu.h> (if it is provided in a system-wide or toolchain-wide include directory).