Copy/transfer buffer to image.

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.

The functions are named exactly as you would expect: clEnqueueCopyImageToBuffer and clEnqueueCopyBufferToImage.

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 :slight_smile: