Wgpu: NodeJS bindings

Created on 23 Jan 2019  路  4Comments  路  Source: gfx-rs/wgpu

These would be required in order to run the WebGPU CTS (cc @kainino0x). I wonder if we can auto-generate it from Rust, like we generate C bindings.

help wanted enhancement

Most helpful comment

Are there any updates on the Node bindings?

Also, would they be added to this repository, or a separate one like wgpu-native?

All 4 comments

My thought is that we can share a Node bindings layer, atop a common C interface. It could reduce the amount of work and maintenance here. However, if you can just generate JS bindings that match WebGPU, it would also be good.

@kainino0x do you plan to generate bindings from dawn.json or write them manually?

So far I have written a few entry points manually. In the long run, I'm hoping to use an easier mechanism (maybe node-ffi if it can possibly work?), but otherwise may try to at least partially generate them from dawn.json.

Are there any updates on the Node bindings?

Also, would they be added to this repository, or a separate one like wgpu-native?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cloudhead picture cloudhead  路  15Comments

z2oh picture z2oh  路  13Comments

zicklag picture zicklag  路  84Comments

ZKing1000 picture ZKing1000  路  23Comments

porky11 picture porky11  路  13Comments