robtfm
robtfm
That sounds like a better idea.
Perhaps it’s best to explicitly disallow shadowing of modules with variables then. Though we can’t easily prevent it in field names of imported structs …
> By the way, are there any extra repositories with shaders that I should ideally test? bevy would be the obvious choice: run a few of the graphics examples (e.g....
it's not ideal but there is an example which runs a bunch of compiles over various configurations - `cargo run --release --example pbr_compose_test` run it twice to populate the driver...
> Is that a reasonably accurate overview so far? yep, that's accurate. > Does that make sense, and would it be reasonable? yes, if you can keep the preprocessor api...
for path parsing, i'm not sure i understood exactly what you're asking for, but just want to make sure you're aware of the static [get_preprocessor_data](https://github.com/bevyengine/naga_oil/blob/33e57e488660aaeee81fa928454e51c215f9d0be/src/compose/mod.rs#L1809) function which tells you the...
a minimal example would be really useful - just the wgsl.
we can definitely change things to make them more usable. do you mean the "with defs" trace from compose.rs@664 ? i'm a bit surprised that's useful, it was only added...
There are naga issues related to this ([wgsl](https://github.com/gfx-rs/wgpu/issues/4373) and [glsl](https://github.com/gfx-rs/wgpu/issues/4374)). In bevy we still use dummy padding items (`_padding: u32`) instead of the align attribute to work around it. I’ll...
on reflection, the backend issues are the direct cause - the including module is built from a generated header for the include for the target language (which includes the struct...