Is there anyway to use such data type as array, union or struct to define local variables in brook kernel?
This is a great limitation.
No, these features are not supported.