1 2 typedef struct __attribute__((packed, aligned(4))) Ball { 3 float2 delta; 4 float2 position; 5 //float3 color; 6 float size; 7 //int arcID; 8 //float arcStr; 9 } Ball_t; 10 Ball_t *balls; 11 12 13 typedef struct BallControl { 14 uint32_t dimX; 15 rs_allocation ain; 16 rs_allocation aout; 17 float dt; 18 } BallControl_t; 19