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

Re: GLSL compiler error: type mismatch for mix as select

$
0
0

Hi Alex,

 

Try changing uvec4 to vec4. The documentation for mix is here:

 

https://www.opengl.org/sdk/docs/man/html/mix.xhtml

 

According to the OpenGL documentation, genType can be float vec2 vec3 or vec4. There are no prototypes in mix() for genUType, which uvec4 is part of.

Hope this helps,

 

Thanks,

Tony.


Viewing all articles
Browse latest Browse all 631

Trending Articles