Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
48 C HAPTER 3 Host programming: data transfer and partitioning Subbuffer 50 Main buffer 0 10 20 30 40 50 60 70 80 90 Figure 3.1 Creating a subbuffer 60 70 80 The code in section 3.4 provides another example of how subbuffers are created in code. The next section, however, discusses the second type of memory object, image objects. 3.3 Image objects Image processing is a major priority in high-performance computing. This is particu- larly true for Open CL , which is one of the few languages capable of targeting graph- ics cards. For this reason, Open CL provides a specific type of memory object for holding pixel data. The standard refers to them as image objects, but there is no sepa- rate data structure for them. Like buffer objects, image objects are represented by cl_mem structures.