Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In the previous chapter, we introduced memory objects that are used to read, write, and copy memory to and from an OpenCL device. In this chapter, we introduce the image object, a specialized type of memory object that is used for accessing 2D and 3D image data. This chapter walks through an example of using image and sampler objects and introduces the following concepts:
Overview of image and sampler objects
Creating image and sampler objects
Specifying and querying for image formats
OpenCL C functions for working with images
Transferring image object data