Chapter 15. Combining OpenCL and OpenGL
- The functions needed to configure OpenGL-OpenCL interoperability
- A method for coding OpenGL-OpenCL applications
- Rendering animated models with OpenGL and OpenCL
One of OpenCL’s greatest strengths is that it can accelerate applications based on OpenGL, the cross-platform API for 3-D rendering. The end goal of an OpenGL application is to compute two-dimensional arrays of numbers that correspond to pixel colors. These pixels must be computed quickly—on a high-resolution display, the application may need to compute hundreds of thousands of colors for each new frame.
Note
The content of this chapter assumes a basic familiarity with OpenGL 3.3 or above and shader development.
Get OpenCL in Action 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.