Function shadergraph::lisp::graph_from_sexp[][src]

pub fn graph_from_sexp(
    context: &Rc<Context>,
    shader_dir: ShaderDir,
    external: External
) -> Result<ShaderGraph, String>
Expand description

Takes a source string of lisp that represents the shader graph to be constructed, And constructs that shader graph within a certain context, Provided a map of all shaders avaliable for the construction of the graph. You can use load_shaders to load a directory into a map.