WIP: Use typed vertex attribute to differenciate functions.
WIP: Add error messages and API description.