Chapter 8. Images and Samplers
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
Image and Sampler Object Overview
GPUs were originally designed for rendering high-performance 3D graphics. One of the most important features of the ...
Get OpenCL Programming Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.