(Demo) OpenGL 4.3 Compute Shaders (Particles + SSBO)


GeeXLab OpenGL 4.3 compute shader demo



 
Here is an OpenGL 4.3 demo I coded for GPU Caps Viewer 1.44.0. GPU Caps Viewer comes with 3D demos that allow to test some specific parts of OpenGL and Vulkan APIs. A demo about simulating particles with compute shaders is still something cool, that’s why I coded this demo. The GPU Caps Viewer version of the demo has no user interaction. In the full version of the demo available here, you can interact with particles using the mouse / keyboard.

The demo requires the support of GL_ARB_compute_shader which should not be a problem today (at least on Windows and Linux). And if supported, the demo will try to use the GL_ARB_compute_variable_group_size extension. According to my tests, GL_ARB_compute_variable_group_size is supported on GeForce GPUs but is not exposed on Radeon GPUs (even with the latest Adrenalin 20.1.2 + Radeon RX 5500 XT or a RX Vega 56).

The demo is available in the OpenGL 4 demopack:
geexlab-demopack-gl-4x/d07-gl43-arb-compute-shaders-particles-simulation/main.xml

As usual, just drag and drop this demo into GeeXLab to play with.

Controls: left CTRL + mouse or left SHIFT + mouse.

 
GeeXLab OpenGL 4.3 compute shader demo





Leave a Comment

Your email address will not be published. Required fields are marked *