mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 06:21:13 +01: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.