Re: GL-CL interoperability in OSX
Posted by
Michael Bien on
May 09, 2011; 1:23pm
URL: https://forum.jogamp.org/GL-CL-interoperability-in-OSX-tp2837450p2918710.html
yes exactly. the first filter gives you a platform supporting at least
one device with GL interoperability or null(!). The second filter
returns all GL capable devices from the selected platform or an empty array.
there is also a platform filter checking vendor compatibility:
https://github.com/mbien/jocl/commit/c00dc66867518f32d6a2615aa8da71a52489d5d8since its unlikely that for example NV cards will ever talk with AMD
cards and vice versa.
the CLGLContext initialisation issue on mac which was the original topic
of this thread should be fixed with this commit:
https://github.com/mbien/jocl/commit/7d44ee784ffa59146d2d1d124f5ffc482fb0f5f0however there are no builds available yet containing the above changes,
if you are interested you will have to use my gluegen and jocl
repositories for a build.
best regards,
michael
On 05/09/2011 11:00 AM, ac [via jogamp] wrote:
>
> The 0.9-b349-20110503 package of jocl seems to incorporate some changes to
> address the gl-cl interop in osx.
>
> Should I get GL-compatible devices by doing:
>
> CLDevice[] devices =
> CLPlatform.getDefault(CLPlatformFilters.glSharing()).listCLDevices(CLDeviceFilters.glSharing());
>
> ?
>
> Thanks,
> Andres