PDA

View Full Version : Copy/transfer buffer to image.



vincentfpgarcia
01-30-2013, 02:00 AM
Hi,
I have a buffer and an image2d allocated on the device.
Is it possible to copy or transfer the data from the buffer to the image?
I guess it is and it should be quite fast but I cannot find the correct function do to that.
Thanks.

matthiasv
01-30-2013, 02:05 AM
The functions are named exactly as you would expect: clEnqueueCopyImageToBuffer and clEnqueueCopyBufferToImage.

vincentfpgarcia
01-30-2013, 02:19 AM
Thanks, you're right, that's what I was expecting.
I'm just wondering why a search on google "opencl copy buffer to image" doesn't point to the correct function... Weird no?
Anyway, thank you :)