Replies: 2 comments 1 reply
-
|
I've started work on this, I've got a build step that will run the bindings generator once it's finished. Right now the issue I'm facing is that |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Any update on this? I would love to help out if a branch or repository was made public |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Seeing as how there's a >4k line diff to the next version of the
wgpu-nativeheaders, I'm starting to look into generating bindings from yaml. Thewgpu-nativebuilds now ship with a copy ofwebgpu.yml, which should cover everythingwebgpu.hcovers, but there are still some thorny issues to get around:wgpu.yml(might be worth making some contributions upstream to resurrect Generate wgpu.h from yaml gfx-rs/wgpu-native#373).SurfaceDescriptor, and merging native extension enums fromwgpu.hinto their corresponding enums fromwebgpu.h(since Zig would ordinarily require some messy type casting to use two different enum types for the same field).webgpu.h/wgpu.h). The generator should have some rules it uses to separate things out into files and generate imports/exports as needed.Hopefully soon I'll have some time to look into it further and spin off some issues. It'll probably be a gradual process of getting the generated bindings 1:1 with the manually-written bindings before switching over completely.
Beta Was this translation helpful? Give feedback.
All reactions