Exemple #1
0
 void sendRenderData(magnet::GL::Context& context)
 {
   context.getCLCommandQueue().enqueueWriteBuffer
     (getPointData(), false, 0, 3 * _N * sizeof(cl_float), &_particleData[0]);
   
   context.getCLCommandQueue().enqueueWriteBuffer
     (getDirectionData(), false, 0, 3 * _N * sizeof(cl_float), &_particleData[3 * _N]);
 }
Exemple #2
0
 void sendRenderData(magnet::CL::CLGLState& CLState)
 {
   CLState.getCommandQueue().enqueueWriteBuffer
     (getPointData(), false, 0, 3 * _N * sizeof(cl_float), &_particleData[0]);
   
   CLState.getCommandQueue().enqueueWriteBuffer
     (getDirectionData(), false, 0, 3 * _N * sizeof(cl_float), &_particleData[3 * _N]);
 }