naga::proc::overloads::utils

Function scalar_or_vecn

Source
pub fn scalar_or_vecn(scalar: Scalar) -> impl Iterator<Item = TypeInner>
Expand description

Produce the scalar and vector ir::TypeInners that have s as their scalar.