naga::front::glsl::builtins

Function inject_builtin

source
pub fn inject_builtin(
    declaration: &mut FunctionDeclaration,
    module: &mut Module,
    name: &str,
    variations: BuiltinVariations,
)
Expand description

Inject builtins into the declaration

This is done to not add a large startup cost and not increase memory usage if it isn’t needed.