private void updateOpenCL(float tpf) {
        //acquire resource
        texCL.acquireImageForSharingNoEvent(clQueue);
        //no need to wait for the returned event, since the kernel implicitly waits for it (same command queue)
        
        //execute kernel
        Kernel.WorkSize ws = new Kernel.WorkSize(settings.getWidth(), settings.getHeight());
        kernel.Run1NoEvent(clQueue, ws, texCL, C, 16);
        
        //release resource
        texCL.releaseImageForSharingNoEvent(clQueue);
    }
This test class tests the capability to write to a GL texture from OpenCL.
Move the mouse around while pressing the left mouse key to modify the fractal.

In addition, this test shows how to use {@link ProgramCache}.

@author shaman
jme3-examples/src/main/java/jme3test/opencl/TestWriteToTexture.java