I would like to use image pyramids and mipmaps in OpenCL.
I need them for two purposes:
1. To sample blocks in an arbitrary scale and rotation from a mipmap.
2. To have an image integral for each scale of the mipmap's pyramid separately.
I know that image2d arrays are not supported in OpenCL.
I wonder what is the best way to do that.
I thought of two options:
1. To store all scales in one image (and use OpenCL's image type) like this: http://en.wikipedia.org/wiki/File:MipMa ... STS101.jpg
2. To use OpenGL built-in mipmaps. Is it possible to sample blocks from OpenGL mipmaps in OpenCL?
Any other ideas are welcome as well.
Thanks in advance,