vispy.visuals.shaders.parsing module#

vispy.visuals.shaders.parsing.find_functions(code)#

Return a list of (name, arguments, return type) for all function definition2 found in code. Arguments are returned as [(type, name), …].

vispy.visuals.shaders.parsing.find_program_variables(code)#

Return a dict describing program variables:

{'var_name': ('uniform|attribute|varying', type), ...}
vispy.visuals.shaders.parsing.find_prototypes(code)#

Return a list of signatures for each function prototype declared in code. Format is [(name, [args], rtype), …].

vispy.visuals.shaders.parsing.find_template_variables(code)#

Return a list of template variables found in code.

vispy.visuals.shaders.parsing.parse_function_signature(code)#

Return the name, arguments, and return type of the first function definition found in code. Arguments are returned as [(type, name), …].