lxp121

can gather and scatter stream be a struct?

Discussion created by lxp121 on Dec 23, 2008
Latest reply on Dec 23, 2008 by Ceq

can gather and scatter stream be a struct?

for example:

typedef struct testRec
{
    int x;
    float y;
}test;

kernel void test1(test a<>, test b[], out test c[])
{
      c[a.x].y = b[a.x].y;
}

 

is this legal? if so, what the size limitation of c in this programm?

thanks

Outcomes