2 Replies Latest reply on Dec 4, 2013 6:38 AM by purpledog

    GLSL function default parameter

    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