Greggman
Greggman
I want to add, recently I wanted to write a wrapper. To do it correctly I needed to know BindGroup layouts so that I know at draw time, which bindgroups...
It seems unlikely this info will be available synchronously. The whole API of WebGPU is async. When you get a module back from `device.createShaderModule` that doesn't mean the module was...
As I mentioned above, there is already [`getCompliationInfo`](https://gpuweb.github.io/gpuweb/#dom-gpushadermodule-getcompilationinfo). It seems like a natural place to get this info. For now though I'd suggest you use [wgsl_reflect](https://github.com/brendan-duncan/wgsl_reflect) and prototype. For example...
One other issue in standardizing this; It's possible that any description of a "struct in memory" will be more difficult to standardize as there may be other APIs that also...
Saw [meow](https://www.npmjs.com/package/meow). Not sure if it's better or worse the commander. it has typescript types.