Function glslt::transform::transform_min [−][src]
pub fn transform_min<'a>(
asts: impl Iterator<Item = &'a TranslationUnit>,
wanted: impl Iterator<Item = &'a str>
) -> Result<TranslationUnit>
Transform a GLSLT AST to an instantiated GLSL AST. Only include symbols transitively
referenced by any of the entry points listed in wanted
.
Parameters
asts
: iterator of translation units to be concatenated and transformedwanted
: list of entry points to keep in the output
Errors
Return an error if the transformation fails. See crate::Error for possible failure reasons.