@Override
    public void simpleUpdate(float tpf) {
        super.simpleUpdate(tpf);
        
        if (initCounter < 2) {
        initCounter++;
        } else if (initCounter == 2) {
            //when initCounter reaches 2, the scene was drawn once and the texture was uploaded to the GPU
            //then we can bind the texture to OpenCL
            initOpenCL2();
            updateOpenCL(tpf);
            initCounter = 3;
        } else {
            updateOpenCL(tpf);
        }
    }
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