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
We begin this chapter ...