spectral

Compilation error : expression must have arithmetic, enum, or pointer type

Discussion created by spectral on Mar 2, 2011

Hi,

 

I have a compilation error :

"expression must have arithmetic, enum, or pointer type"

 

   if (Li != (clSpectrum)(0.f))

      ^



But I don't know why ! The OpenCL spec tell that we can do this... even that we can do "Li != 0.f" !

Please, can you advice ?

 

float3 Li = ... if (Li != (float3)(0.f))

Outcomes