You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Olivier Chafik edited this page Nov 10, 2022
·
3 revisions
How and why to create OpenGL-compatible OpenCL contexts with JavaCL
Creating an OpenGL-compatible context
When rendering OpenGL scenes which data comes from OpenCL computations (vertices, colors, norms and/or textures), it is important to make sure that as little data is copied as possible.
OpenCL supports an optional OpenGL interoperability, which starts to be implemented by some graphic card vendors.
Setting up an OpenGL-compatible OpenCL context with JavaCL is easy, but as of this writing the resulting context can very instable, depending on the version of your driver. Only experience will tell you if you really want to enable the interoperability.