Hello again,
Now that OpenCL images seem to work (well apart from some weirdness which I haven't followed up on) i've been trying to get jogl textures to work with jocl.
I just get CL_INVALID_KERNEL_ARGS whenever I try to pass a CLGLTexture2d or CLGLImage2d (created from a renderbuffer) to a function.
I have a test case this time ...
http://www.users.on.net/~notzed/java/jocl/Test1.javaIf i pass a CLImage2d created from a CLContext for the image argument it enqueues the kernel fine but with the test case it generates errors:
kplanetoimage with texture failed
can not enqueue NDRangeKernel: CLKernel [id: 140655620213664 name: planeToImage] with gWO: null gWS: {1024, 768} lWS: {64, 1} cond.: null events: null
error: CL_INVALID_KERNEL_ARGS (man page:
http://www.khronos.org/opencl/sdk/1.1/docs/man/xhtml/errors.html)
kplanetoimage with gl render buffer failed
can not enqueue NDRangeKernel: CLKernel [id: 140655620213664 name: planeToImage] with gWO: null gWS: {1024, 768} lWS: {64, 1} cond.: null events: null
error: CL_INVALID_KERNEL_ARGS (man page:
http://www.khronos.org/opencl/sdk/1.1/docs/man/xhtml/errors.html)
Am I just doing something wrong? I had a (very) cursory look at the jocl stuff i was calling but didn't see anything obviously out of place.
Cheers,
Michael