10 Replies Latest reply on Feb 23, 2011 5:52 PM by himanshu.gautam

    float3 size ? and transfert from host to kernel ?

    spectral

      Hi,

      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 ?



       

      Thanks