MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / BufferGL

Method BufferGL

include/internal/CL/cl.hpp:3469–3486  ·  view source on GitHub ↗

! \brief Constructs a BufferGL in a specified context, from a given * GL buffer. * * Wraps clCreateFromGLBuffer(). */

Source from the content-addressed store, hash-verified

3467 * Wraps clCreateFromGLBuffer().
3468 */
3469 BufferGL(
3470 const Context& context,
3471 cl_mem_flags flags,
3472 cl_GLuint bufobj,
3473 cl_int * err = NULL)
3474 {
3475 cl_int error;
3476 object_ = ::clCreateFromGLBuffer(
3477 context(),
3478 flags,
3479 bufobj,
3480 &error);
3481
3482 detail::errHandler(error, __CREATE_GL_BUFFER_ERR);
3483 if (err != NULL) {
3484 *err = error;
3485 }
3486 }
3487
3488 //! \brief Default constructor - initializes to NULL.
3489 BufferGL() : Buffer() { }

Callers

nothing calls this directly

Calls 2

errHandlerFunction · 0.85
BufferClass · 0.70

Tested by

no test coverage detected