Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate from webgpu.yml #15

Open
eliemichel opened this issue May 8, 2024 · 1 comment
Open

Generate from webgpu.yml #15

eliemichel opened this issue May 8, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@eliemichel
Copy link
Owner

The official repository of webgpu.h now provides a machine-processable version of webgpu.h, namely webgpu.yml.

Ultimately, we should generate this WebGPU wrapper directly from webgpu.yml, but this means dropping support for older versions that do not have a webgpu.yml coming with them. And more importantly, this is not possible yet because implem-specific version of webgpu.h that are used everywhere do not come with their own webgpu.yml for now.

One possibility would be to turn the current dirty scraper into a script that extracts a minimal webgpu.yml from any webgpu.h, then have the main generator script use either this reconstructed webgpu.yml or the official one.

@eliemichel eliemichel added the enhancement New feature or request label May 8, 2024
@zokrezyl
Copy link

zokrezyl commented Jan 2, 2025

Hi, was about to ask the question, why the code is not generated from the yaml file, but understand that the yaml file is something new.

Even if the yaml file would not be used a bit more elegant solution would be to use clang index python lib or C++ clang index lib.

It is also strange that the headers repo does not mention how the yaml file is derived from the idl (webgpu-native/webgpu-headers#484)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants