naga_oil::compose

Function get_preprocessor_data

Source
pub fn get_preprocessor_data(
    source: &str,
) -> (Option<String>, Vec<ImportDefinition>, HashMap<String, ShaderDefValue>)
Expand description

Get module name and all required imports (ignoring shader_defs) from a shader string