GLSLplusplus
GLSLplusplus copied to clipboard
Generic programming (template metaprogramming)
Is GLSLplusplus able to compile generic functions to GLSL, like this one?
T generic_example(T x, T y){
return (x < y) ? x : y;
}
Apparently it's possible to compile generics to GLSL using Circle shaders, but I'm not sure if GLSLplusplus has a similar feature.