Quantcast
Channel: AMD Developer Forums: Message List - OpenGL & Vulkan
Viewing all articles
Browse latest Browse all 631

GLSL function default parameter

$
0
0

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


Viewing all articles
Browse latest Browse all 631

Trending Articles