mirror of
https://github.com/pithings/unkernel.git
synced 2026-12-02 02:39:50 +08:00
std's HashMap seeds each map differently (on wasm32 from a count of the maps made before), and several passes emit ids and declarations in map order, so the same module translated twice in one instance could give different WGSL (small.comp: declaration order and names). The passes' maps and sets now have a fixed seed (crate::HashMap and HashSet), the 8/16-bit storage pass also emits its groups and typed constants sorted, and vk/naga/test/run.ts translates every test shader a second time and requires the same output.