Skip to main content

inject_defines

Function inject_defines 

Source
pub fn inject_defines(source: &str, defines: &[(&str, &str)]) -> String
Expand description

Prepend a #define line per (name, value) pair. The defines become part of the source text on purpose: the shader cache keys on the assembled source, so two pool sizes can never share an artifact.