mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Adds a mode to compaction that removes unused functions, global variables, and named types and overrides. This mode is used everywhere except the compaction at the end of lowering, where it is important to preserve unused items for type checking and other validation of the module. Pruning all but the active entry point and then compacting makes `process_overrides` tolerant of missing values for overrides that are not used by the active entry point. Fixes #5885