textures - opencl vector of image buffer/huge amount of data for image buffer -


i'm quite new opencl , face little problem current program. want move large amount of images on device , need read them in program. problem is, device lets me allocate buffers of ca. 255mb, since program should able handle different parameters , should able run on several machines, not know exact number of images can put on device beforehand have evaluate @ runtime.

to creating several image buffers (textures) images stored in , have buffer contains pointers these buffers.

unfortunately can't find information on how (especially since image buffers need declared either read_only or write_only) or if possible @ all.

thanks help!

opencl not allow pointers images (or pointers buffers). alternative use 3d texture if available. opencl 1.2 has separate objects arrays of 2d textures (no interpolation along z-axis). if restrict 2d textures, can still put several images same texture @ different offsets. finally, can generate kernel code @ runtime, allowing change number of images passed parameters.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -