[cfe-dev] casting vector types - found answer

Jochen Wilhelmy j.wilhelmy at arcor.de
Sun Oct 10 14:49:07 PDT 2010


Hi!

i found the answer: obviously float4 x = (float4)((int4)(1,2,3,4))  does 
not work since
this is not allowed in opencl. for this are the convert_float4 etc. 
functions.

-Jochen




More information about the cfe-dev mailing list