mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Some compilers like shaderc introduce a full gl_PerVertex struct, this includes gl_ClipDistance. Normally this isn't a problem since most drivers optimize it away, but naga zero inits globals if they weren't previously initialized. This causes gl_ClipDistance to be initialized to zero which can be really bad for performance.