vec_size

Function vec_size 

Source
pub(crate) fn vec_size(t: WgslType) -> usize
Expand description

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.