Hi~ Sorry for the late reply.
I found these posts useful. These are C++ compute shader examples:
- GitHub - IGME-RIT/graphics-glfw-basicComputeShader
- GitHub - IGME-RIT/Basic-OpenGL-with-GLFW-Compute-Shaders
- GitHub - IGME-RIT/physics-massSpringLagrangian-tutorial: This is an example of a mass spring system using Lagrangian dynamics. Instead of considering the positions, velocities, and accelerations of each mass individually we use generalized forces to compute acceleration of the system.
- GitHub - IGME-RIT/graphics-glfw-clothComputeShader.
Also, this one is an example written in Java with JOGL: