AnsweredAssumed Answered

cast between the scalar and vector types

Question asked by sajis997 on Feb 5, 2014
Latest reply on Feb 6, 2014 by roger512

Hello forum,

I created a buffer of cl_host2 and sent to the kernel as float2. Is it possible to cast it to float inside the kernel as follows:

float *converted = (float*)(original_float2);