createFromTexture3d -- is it working?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

createFromTexture3d -- is it working?

Will H.
Is there an example that uses the CLGLContext createFromTexture3d? Has anyone seen this error?

java.lang.IllegalArgumentException: CL_MEM_COPY_HOST_PTR or CL_MEM_USE_HOST_PTR can not be used with OpenGL Buffers.

I've had success with openCL when it's not linked to openGL, and I got the openCL/openGL interoperability demo to run -- but that demo only shares a vertex buffer object, not a texture.  

I would like to have openCL process an openGL texture that already exists on the GPU.

Does anyone have an example that works? Has anyone tried this?
Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: createFromTexture3d -- is it working?

notzed
I've used 2d textures ok.

How are you calling that function?  Using a recent jocl?