4 Replies Latest reply on Dec 30, 2009 3:05 PM by MicahVillmow

    Basic question on pointers to vectors

    diapolo

      I read the sample Kernels in the current ATI Stream SDK, but I can´t seem to figure out how to access vector elements (like .x and so on) if I pass a pointer to a vector to a function defined in a kernel.

      Let´s say the function receives a pointer as uint4 *pVec and got it passed via &Vec. How can I access the elements in the sub-function? *pVec->x throws an error.

      Thanks for your help,

      Dia