0 Replies Latest reply on Oct 28, 2008 1:09 AM by tonald

    about the brook+ programming rules

    tonald

      May I ask some questions here and hope anybody can give me some help on these questions.

      Brook+ have some rules with the programming semantic, but I didn't find where can give more details about the programming rules.  For example,

      It's not allowed to  declare and use a struct like below:

      typedef struct _OutDat{

      float data[4];

      int datatype;

      }OutDat;

       

      kernel void ImgProcFunc(float image[][], out OutDat o_img<>;

       

      but, it's allowed to  use a struct like below:

      typedef struct _OutDat{

      float data0,

      float data1,

      float data2,

      float data3,

      int datatype;

      }OutDat;

       

      kernel void ImgProcFunc(float image[][], out OutDat o_img<>;

       

      Why array declare is not allowed? I didn't find any documents give more details about the programming rules.