...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::compute::opengl_create_shared_context
// In header: <boost/compute/interop/opengl/context.hpp> context opengl_create_shared_context();
Creates a shared OpenCL/OpenGL context for the currently active OpenGL context.
Once created, the shared context can be used to create OpenCL memory objects which can interact with OpenGL memory objects (e.g. VBOs).
Throws: |
unsupported_extension_error if no CL-GL sharing capable devices are found. |