AnsweredAssumed Answered

GLSL function default parameter

Question asked by purpledog on Dec 2, 2013
Latest reply on Dec 4, 2013 by purpledog

I am trying to compile a function with a default parameter:

mat3 id3(float w = 1.0) { return mat3(w, 0.0, 0.0, 0.0, w, 0.0, 0.0, 0.0, w);}

But the compiler is saying:

ERROR: 0:203: error(#132) Syntax error: "=" parse error

 

Any idea ? Are default parameters not available with the AMD GLSL compiler ?

 

Thanks

Outcomes