Conversation
Please double check the following review of the pull request:
Changes in the diff
Identified IssuesNo issues identified. The changes are straightforward API updates to conform to wgpu 0.28, replacing SummaryThe diff correctly updates the code to be compatible with wgpu 0.28, which replaced Missing TestsNo new functionality or behavioral changes were introduced that require new tests. The changes are API compatibility fixes and code generation updates. Existing tests should cover pipeline layout creation and shader binding generation. Summon me to re-review when updated! Yours, Gooroo.dev |
|
Ah yeah, I forgot to ask - how should version compatibility be handled here? Since 28 is a breaking change (?) |
We only roll forward, however we have to ensure that both naga_oil dependency as well as the example uses the wgpu crate 28. Unfortunately if naga_oil doesn't support the latest version, we would have to wait until it is supported. |
|
Ah okay sorry, yeah that looks like it's still on 27. I made this because I thought I'd need it for something, but I ended up hitting other issues and switching to another solution. Please feel free to close this, it's pretty small so I'm not sure it's worth keeping around. |
|
https://crates.io/crates/naga_oil/0.21.0/dependencies is now on wgpu 0.28. By the way would it be a good idea to create features for each wgpu version supported? |
Do you mean to support each wgpu versions or at least major ones? |
I had in mind a version for each major version, when the api changes, so that wgsl-bindgen crate always generates code that compiles. |
I set
immediate_sizeto zero because AFAICT Naga'sTypeenum doesn't haveImmediateyet so it isn't supported? I couldn't find much info about it, it was added in gfx-rs/wgpu#8724This works in my usage (compiles), but I may not be using all the features and the diff for that MR is pretty big.