GLSLplusplus icon indicating copy to clipboard operation
GLSLplusplus copied to clipboard

Generic programming (template metaprogramming)

Open jarble opened this issue 3 years ago • 0 comments

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.

jarble avatar Dec 19 '20 17:12 jarble