I am currently learning OpenCL and to build several kernels you need a buffer for each function, so you need an array of buffers. How do you build such a data structure? Can someone give me an example of a buffer struct so I can just declare an array of those structs?
Share
If you are using the C++ binding you could use vectors instead of raw arrays.
So you could store your buffers in a data-structure like :