pub(crate) fn vec_of_size(n: usize) -> WgslTypeExpand description
Returns the WgslType for a vec of the given component count. 1 maps
to scalar f32, 2..4 to the matching vec type, anything else to
Unknown. Convenience for AST-driven rewrites that need to construct
a target type from an inferred component count.