pub(crate) fn vec_size(t: WgslType) -> usize
Component count for vec types, 0 for everything else. Used by the truncation pass to size the trailing .xy/.xyz swizzle when narrowing a wider vec into a smaller one.
.xy
.xyz