cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Meteorhead
Challenger

acquire framebuffer

howto

Hi!

My question is rather simple, yet the answer might not. I would like to know if there's a way to acquire the actual GL buffer being drawn onto the screen? (In case of double buffering this would be the previous completed image, being redisplayed on the screen, not the one that is actually being assembled)

Is there any way to pass this buffer over to OpenCL? The interop sample shows how to share buffers created from host data, but what are the means to acquire a changing buffer like a double-buffered framebufer?

If I simply create a GL buffer object with glBindBuffers(GL_FRAME_BUFFER, &frameBuffObj); and call clCreateFromGLBuffer(...); what will happen after glutSwapBuffers(); is called?

Could anoyone tell me what would be the way to approach this problem?

0 Likes
11 Replies