OpenCL equivalent to cudaBindTexture2D

Discussion created by P.M on Jul 10, 2011
Latest reply on Jul 11, 2011 by P.M

Hi all, I'm currently tring to port one of my simplest Cuda kernels to OpenCL.

In this piece of code, I allocate a big (fullW, fullH) image on GPU.
Then I memcpy a portion of image that could be smaller (w, h).
I bind this (w,h) portion on a clamped 2D texture and fetch this texture from the kernel.

Is it possible to bind a 2D portion of a bigger image with OpenCL ?
Thanks a lot for your help!