Use https://github.com/Capati/wgpu-odin instead
wgpu native bindings for the Odin programming language based on generated results from modified WebGPU native headers using The Odin Binding Generator
Idomatic wrappers are added in wrappers.odin for select procededures and a few helper functions are also added in helpers.odin - ChainedStruct(Out) constructors link
and chain
and a request callback constructor request_cb
.
Additionally the subpackage sdl contains a procedure for creating a surface from an sdl window.
I'm still getting familiar with WebGPU as I work on these bindings so some details may be subject to change.
A couple simple examples exist in the examples folder.
I also reccomend checking out LearnWebGPU for C++ if you are new to programming with native webgpu as the bindings are close enough to the cpp api for it to be helpful.