Swoorup Joshi
Swoorup Joshi
Was thinking this, One way is to make all entries optional for the bond group that is common across modules. To support a mix match, could use enum. But it...
I kinda need this ATM myself. It would be great if you could provide an example files for your use case.
> You might need to handle wgsl files individually, rather than using entry points. > > My solution to this was to build a .rs file for each .wgsl file,...
Very alpha, but might land it soon. See example's `global_bindings.wgsl` https://github.com/Swoorup/wgsl-bindgen/pull/55
> wgsl now supports these, and I think they could speed up some computations. > > wgsl_bindgen fails these because naga_oil, which in turn fails because of naga. > >...
> The problem is, 'adding' this feature wont work, because as far as I understand, before wgsl gets compiled to... whatever it gets compiled to, these pipeline-overrideable constants get replaced...
> I think I understand more of whats going on thanks to that. Now it makes sense why the writer in naga source-code still did not seem to have that...
> Eh. I mean, I realized earlier there was some kind of IR translation going on, since the embedded shader had some differences. But when I debugged this issue I...
> However, vertex attributes do not have this field, and it appears only in the structure itself The `vertex_index` you are specifying is built in and doesn't need to be...
See https://www.w3.org/TR/WGSL/#alignment-and-size