Chapter 10. Interoperability with OpenGL
This chapter explores how to achieve interoperation between OpenCL and OpenGL (known as OpenGL interop). OpenGL interop is a powerful feature that allows programs to share data between OpenGL and OpenCL. Some possible applications for OpenGL include using OpenCL to postprocess images generated by OpenGL, or using OpenCL to compute effects displayed by OpenGL. This chapter covers the following concepts:
• Querying the OpenCL platform for GL sharing capabilities
• Creating contexts and associating devices for OpenGL sharing
• Creating buffers from GL memory and the corresponding synchronization and memory management defined by this implied environment
OpenCL/OpenGL Sharing Overview
We begin this chapter ...
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.