float3 size ? and transfert from host to kernel ?

Discussion created by spectral on Oct 28, 2010
Latest reply on Feb 23, 2011 by himanshu.gautam


In my application I have replace the following struct :


typedef struct { float x, y, z; } Point;

with a float3 like this #define Point float3

But now, it does not work anymore.

At the startup I transfert some "Point" in a memory buffer for the kernel.

In C++ I have the same structure (Point) that I setup and after I transfert it to the kernel.

Does anyone know if I can directly transfert a "float3" like structure (here point) from the host to kernel like this ?