1
2typedef struct __attribute__((packed, aligned(4))) Ball {
3    float2 delta;
4    float2 position;
5    uchar4 color;
6    float pressure;
7    //float size;
8    int32_t next;
9    //int arcID;
10    //float arcStr;
11} Ball_t;
12Ball_t *balls;
13
14
15typedef struct BallGrid {
16    int32_t idx;
17    int32_t count;
18    int32_t cacheIdx;
19} BallGrid_t;
20