webgpu-native / webgpu-headers

**NOT STABLE YET!** See README :)
https://webgpu-native.github.io/webgpu-headers/
BSD 3-Clause "New" or "Revised" License
384 stars 45 forks source link

Making language bindings portable over different versions of webgpu.h #202

Open kainino0x opened 1 year ago

kainino0x commented 1 year ago

webgpu.h is getting standardized, but will gain features over time. Meanwhile, language bindings like Dawn's C++ bindings will want to be portable over webgpu.h. But this means that if, say, Dawn's C and C++ headers gain feature X, but wgpu-native's C and the proposed Rust-on-C bindings gain feature Y, then those bindings layers won't be portable to the other implementation's C header.

kainino0x commented 11 months ago

Maybe this can be done on an ad-hoc basis, where, say, Dawn generates two versions of its C++ bindings - one for Dawn, and one for some unnamed snapshot of a subset of webgpu.h that we know is supported where we need it. So those bindings would just take an implicit dependency on whatever was in that snapshot.

kainino0x commented 10 months ago

Dec 21 meeting