-
Notifications
You must be signed in to change notification settings - Fork 618
Trash. CodeGeneration
Cyrille Rossant edited this page Feb 26, 2014
·
1 revision
We'll need a system to generate Python and GLSL functions implementing the same logical operations (mostly mathematical equations). Examples:
- Transformations on the CPU & GPU
- Color space transformations on the CPU & GPU
We could have a specific module for that. I think it should be pretty lightweight. One would provide 1 or several mathematical function(s) as a string (like x' = a*x+b, y' = c*y+d
) and the module would create a Python function and a GLSL function. It could also generate the inverse function (or maybe this should be left to the user at first).
Things to work out: data types (vec3 etc.), how to vectorize (NumPy arrays on the CPU, kernels on the GPU) ?