I've just started fiddling around with OpenCL and I've come across a problem: I do not know how to pass complex data structures as arguments. I'm using LWJGL's OpenCL binding, and the example provided in the wiki http://lwjgl.org/wiki/index.php?title=Sum_Example. In that example 2 float buffers are created and passed as arguments (LWGJL provides methods in a class named BufferUtils for creating these buffers).
Now, how would I create a buffer of points, typedef struct {int x, int y} tpoint
, or structs in general? There are no structs in Java. Moreover there is no BufferUtils.createStructBuffer method.