Image Type : IMAGE2D vs IMAGE2D_ARRAY
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 :
I can't find the difference between them in the documentation.
Can anyone explain me please?
Re: Image Type : IMAGE2D vs IMAGE2D_ARRAY
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.