mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 05:51:03 +01:00
In `wgpu_core::pipeline`, delete `ShaderMetaData` and turn `ShaderModuleState` into the equivalent enum, giving both the `NagaModule` and `Passthrough` variants their own `raw` field. Arrange for uses of `ShaderModuleState` to extract the raw `wgpu_hal` module in the `match` expression that handles the two variants. In isolation, this change looks like mere rearrangement, not a cleanup, but hopefully either way it's easy to see that it has no effect on behavior. Subsequent commits will remove `raw` from the `NagaModule` variant; this refactor will allow that to affect only the `NagaModule` `match` arms, leaving the passthrough code unaffected.