2 Replies Latest reply on Dec 23, 2008 11:19 AM by Ceq

    can gather and scatter stream be a struct?

    lxp121

      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