WebGPU bindings for the C3 programming language, generated from the official webgpu-native JSON spec.
The bindings wrap wgpu-native and work on Linux, macOS, and Windows.
The bindings in lib/ are already generated and committed. You only need to rebuild them if you want to update to a newer spec version.
./build.shThis downloads the latest webgpu.json spec and regenerates lib/webgpu.c3 and lib/commands.c3.
Download the native library for your platform:
./install.shThis detects your OS and architecture and places the library in ./libs/wgpu-native/.
c3c run cubePress Q or Escape to exit.
Add this library as a dependency in your project.json:
"dependencies": ["wgpu"],
"dependency-search-paths": ["path/to/webgpu.c3l/.."]Then import it:
import wgpu;GLTF loading example can be found here