Image Type : IMAGE2D vs IMAGE2D_ARRAY

Hi,

I’m updating my OpenCL code and I’m trying to get rid of the old clCreateImage2D.
The new version is clCreateImage and it requires different parameters.
One of them is the image type. The image type (for a 2D image) can be :

CL_MEM_OBJECT_IMAGE2D
CL_MEM_OBJECT_IMAGE2D_ARRAY

I can’t find the difference between them in the documentation.
Can anyone explain me please?

Thank you.

Vincent

OK, got it and it’s simple.
It’s possible in OpenCL to create an array of images instead of only one image.
In this case, juste use CL_MEM_OBJECT_IMAGE2D_ARRAY.

Thanks anyway.

Vincent