tonald

any documents for brook+ programming semantic?

Discussion created by tonald on Oct 28, 2008
Latest reply on Oct 30, 2008 by bpurnomo

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.

 

 

 

 

 

 

 

Outcomes