OpenCL equivalent to cudaBindTexture2D
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 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!
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 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!

#1
Posted 07/10/2011 07:47 PM   
Any update on that topic?
Any update on that topic?

#2
Posted 04/10/2012 12:14 PM   
Scroll To Top