Right now it takes black magic to create a struct for use on the GPU. It would be really helpful if there were some sort of helper library, similar to ctypes for python.
If I understand that correctly you're suggesting something like this http://docs.python.org/library/ctypes.html#ctypes-fundamental-data-types-2 aren't you? But including stuff like float4.
Something along those lines. Basically, I want something where I can transfer/translate a moderately complicated structure without having to break out a calculator. It would also have to take care of the particularly nasty bits, such as alignment.
This is a good idea. I'll see what I can do.