It's not possible to bind a texture to an arbitrary buffer in OpenCL, unless there's some magic way to do it in OpenGL and then share that with OpenCL. Can you not just pass or compute the image offsets to the smaller texture?
If not, you'll just have to copy the smaller image to another texture.
Originally posted by: rick.weberCan you not just pass or compute the image offsets to the smaller texture?
I don't understand what you mean. I chose to memcpy my (w,h) data in the (fullW, fullH) image at origin(0,0). So there is no offset.
I would like the texture to be clamped for indexes x>w and y>h. But since my original image2D was create with a (fullW, fullH) size it does not work.
That's why I want to rebind it. So it is not possible?