private void updateOpenCL(float tpf) {
        //advect time
        time += tpf;
        
        //acquire resource
        buffer.acquireBufferForSharingNoEvent(clQueue);
        //no need to wait for the returned event, since the kernel implicitly waits for it (same command queue)
        
        //execute kernel
        float scale = (float) Math.pow(1.1, (1.0 - time%2) / 16.0);
        kernel.Run1NoEvent(clQueue, ws, buffer, scale);
        
        //release resource
        buffer.releaseBufferForSharingNoEvent(clQueue);
    }
This test class tests the capability to read and modify an OpenGL vertex buffer.
It is also shown how to use the program binaries to implement a simple program
cache.
@author shaman
jme3-examples/src/main/java/jme3test/opencl/TestVertexBufferSharing.java