Results 1 to 2 of 2

Thread: Image Type : IMAGE2D vs IMAGE2D_ARRAY

  1. #1

    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

  2. #2

    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.

    Thanks anyway.

    Vincent

Similar Threads

  1. Image computing in OpenCL (image2D or array)
    By Elhassan in forum OpenCL
    Replies: 1
    Last Post: 11-20-2012, 12:34 AM
  2. Image2d or Buffer?
    By henn1ng in forum OpenCL
    Replies: 3
    Last Post: 05-14-2012, 06:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •