private void initOpenCL2() {
        //bind vertex buffer to OpenCL
        VertexBuffer vb = geom.getMesh().getBuffer(VertexBuffer.Type.Position);
        buffer = clContext.bindVertexBuffer(vb, MemoryAccess.READ_WRITE).register();
        ws = new com.jme3.opencl.Kernel.WorkSize(geom.getMesh().getVertexCount());
    }
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