Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 458 Bytes

README.md

File metadata and controls

10 lines (8 loc) · 458 Bytes

Particle-system

Particle system using OpenCL and OpenGL

Goal is to achive 3kk particles with 30 fps as minimum

  • At first we create OpenGL context and create buffer, with size for all particles, but do not provide any data from RAM (NULL)
  • Then create shared OpenCL context (CGLContextObj gl_ctx = CGLGetCurrentContext(); CGLShareGroupObj gl_sharegroup = CGLGetShareGroup(gl_ctx);
  • Now we can get buffer from OpenGL with clCreateFromGLBuffer();