cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

sandyandr
Adept I

OpenGL object access

Hello. It's a silly question, I guess, but still: is there any way to access objects of OpenGL world from OpenCL code (light position for example)? All that I can touch are just VBOs and textures. What about other things and properties?

0 Likes
Reply
4 Replies
nou
Exemplar

OpenGL object access

yes it is possible. it is called OpenGL/OpenCL interoperability when you can acess GL buffers as memory buffer from OpenCL and GL textures as images in CL.

0 Likes
Reply
himanshu_gautam
Grandmaster

Re: OpenGL object access

CL-GL interop is described in the OpenCL Extensions PDF. The main spec delegates that section to this supplement.

So, Please check http://www.khronos.org/registry/cl/specs/opencl-1.2-extensions.pdf

0 Likes
Reply
sandyandr
Adept I

Re: OpenGL object access

I know about buffers and images, but what about other OpenGL objects? Lights, for instance? I just try to control my OpenGL-world by OpenCL only, achieving maximum independence from CPU performance.

0 Likes
Reply
nou
Exemplar

Re: OpenGL object access

no this is not possible. even OpenCL is dependent o CPU performance.

0 Likes
Reply