Home

Awesome

WebGPU Headers

This repository contains C headers equivalent to the WebGPU API and documentation on the native specificities of the headers.

This header is NOT STABLE yet, and the documentation is very much a work in progress!

All of the API is defined in the webgpu.h header file. Read the documentation here!

Why?

While WebGPU is a JavaScript API made for the Web, it is a good tradeoff of ergonomic, efficient and portable graphics API. Almost all of its concepts are not specific to the Web platform and the headers replicate them exactly, while adding capabilities to interact with native concepts (like windows).

Implementations of this header include:

Details

Here are some details about the structure of this repository.

Main files

Generator

Workflows

Contributing

Important When submitting a change, one must modify both the webgpu.yml and webgpu.h files in a consistent way. One should first edit webgpu.yml (the source of truth), then run make gen to update webgpu.h and finally commit both changes together.