Skip to main content

vec_t

Function vec_t 

Source
pub fn vec_t(
    n: usize,
    tplt_ty: &Type,
    args: &[Instance],
    stage: ShaderStage,
) -> Result<Instance, Error>
Expand description

vecN<T>() constructor.

Expects tplt_ty to be valid (a scalar).

Reference: https://www.w3.org/TR/WGSL/#vec2-builtin