I have a question using domainsize in a compute kernel in brook.
The function takes a uint4. What are the components ?
I also have a queson abount instance() in a compute kernel because threads are 1 D in CAL now, so how brook computes x and y in instance().
Brook+ generated IL has calculation to convert 1D thread id into 2D or 3D thread id using stream dimensions. You can avoid this calculation if you declare the kernel parameter with 1D scatter stream.