We have docstrings for most methods, but it would be nice to also have docs for the emums/flags/structs and their fields.
The docstrings for the methods are written by hand, the codegen only updates signatures in these files. Would probably be good to read through them and make them more complete ...
For flags/enums/structs we could perhaps load these from upstream definitions. Or just write them by hand in a separate document. Or a mix of both.
Possible sources to load docstrings from:
We have docstrings for most methods, but it would be nice to also have docs for the emums/flags/structs and their fields.
The docstrings for the methods are written by hand, the codegen only updates signatures in these files. Would probably be good to read through them and make them more complete ...
For flags/enums/structs we could perhaps load these from upstream definitions. Or just write them by hand in a separate document. Or a mix of both.
Possible sources to load docstrings from:
webgpu.hbut most docstrings can be applied to the user-facing API too. However, most docs are currently missing.