float3.x address ?

Discussion created by spectral on Sep 29, 2010
Latest reply on Oct 1, 2010 by himanshu.gautam


I try to use the address of a float3 element like this and I got an error, maybe it is not allowed ?

float3* val ...

mymethod(&val->x, &val->y); 

where :

void mymethod(float* a, float * b) ...

and I got this message :

error: expression must
          have pointer-to-struct-or-union type