cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

nou
Exemplar

OpenGL OpenCL interopearbility and multiple OpenGL context.

when i create OpenGL context then OpenCL context with enabled interoperability will it work with multiple GL context?

can i use shared buffers across all OpenGL context?

what happend if i delete first GL context which was used in creation OpenCL context?

creating and deleting OpenGL context can be dynamical.

0 Likes
1 Reply
gaurav_garg
Adept I

when i create OpenGL context then OpenCL context with enabled interoperability will it work with multiple GL context?


OpenCL context is associated to a single context.

can i use shared buffers across all OpenGL context?


If your OS allows OpenGL object sharing across multiple contexts, you can do that. But, it has nothing to do with OpenCL, beacuse you are sharing OpenGL objects and not OpenCL.

what happend if i delete first GL context which was used in creation OpenCL context?


Context deletion can cause undefined behavior becuase OpenCL objects are valid as long as OpenGL objects are valid.

0 Likes