Passing array of arrays to OpenCL via JOCL?
Posted by Giovanni Idili on May 10, 2011; 12:47pm
URL: https://forum.jogamp.org/Passing-array-of-arrays-to-OpenCL-via-JOCL-tp2922911.html
Are you ready for yet another OpenCL/JOCL beginner question?
Here we go: I am in need of passing down to a given kernel an array of arrays, frantically looking for examples but can't seem to find any.
Can I do something like the following?
CLBuffer<CLBuffer<FloatBuffer>> clBufferOfBuffers = new etc.
Or am I better off just passing different buffers one for each of the items I need to pass for a given index?
Any help/advice appreciated.