Day 3: OpenCL and OpenGLâKeeping It on the GPU
Today weâll put together a complete OpenCL application that both runs and visualizes a simple physics simulation. In the process, weâll see not only how to create a kernel that executes the simulation in parallel but also how to integrate OpenCL with OpenGL and avoid the overhead of buffer copies by keeping everything on the GPU.
Water Ripples
The simulation weâre going to create is of water ripples. Itâs not going to be a hyperaccurate physical simulation, but it will be good enough to look convincing as a graphical effect in a gameâto simulate, for example, the surface of a pond during a rain shower.
LWJGL
Weâre going to move away from C for this example and instead use Java together ...
Get Seven Concurrency Models in Seven Weeks now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.