Dawn auto-generates the C headers from their internal JSON-based spec. We could auto-generate the header with cbindgen, similarly how WebRender does it for Gecko integration: https://searchfox.org/mozilla-central/source/gfx/webrender_bindings
Not only we need to setup the scripts and CI-tests for the header generation, we also need to keep an eye on Dawn headers so that we are compatible.
Dawn auto-generates the C headers from their internal JSON-based spec. We could auto-generate the header with cbindgen, similarly how WebRender does it for Gecko integration: https://searchfox.org/mozilla-central/source/gfx/webrender_bindings
Not only we need to setup the scripts and CI-tests for the header generation, we also need to keep an eye on Dawn headers so that we are compatible.