Spirv-cross for shader translation #2953
-
Does wgpu still use spirv-cross for shader translation? This article suggests that since 0.10.0 naga replaced spirv-cross, but the docs upto 0.12.0 still say that spirv-cross is used for shader translation. Are the docs wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi! 👋 The docs are outdated - it should say We'd be happy to accept a PR changing the comment if you'd like to submit one! |
Beta Was this translation helpful? Give feedback.
-
Another thing I just ran into is, that ShaderSource::Glsl is the only type in wgsl/lib.rs with |
Beta Was this translation helpful? Give feedback.
Hi! 👋 The docs are outdated - it should say
naga
instead ofspirv_cross
there (and remove the reference togfx
, since it's not used anymore).We'd be happy to accept a PR changing the comment if you'd like to submit one!