Results 1 to 2 of 2

Thread: OpenGL buffer from OpenCL buffer?

  1. #1
    Junior Member
    Join Date
    Dec 2009
    Posts
    16

    OpenGL buffer from OpenCL buffer?

    Does anybody know a way to create an OpenGL buffer (GLuint) from an existing OpenCL mem buffer? I know you can go the other way using clCreateFromGLBuffer() but I'd like to keep my memory management in OpenCL if possible and have the OpenGL buffer be temporary. Hope that makes sense. Thanks!

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: OpenGL buffer from OpenCL buffer?

    Does anybody know a way to create an OpenGL buffer (GLuint) from an existing OpenCL mem buffer?
    It is not possible yet. You will have to do it the other way around: create a cl_mem object out of an OpenGL buffer object.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

Similar Threads

  1. opencl buffer from premade opengl buffer
    By MohamedSakr in forum OpenCL
    Replies: 0
    Last Post: 11-21-2012, 03:42 PM
  2. Replies: 6
    Last Post: 06-22-2011, 12:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •