Documentation
¶
Overview ¶
Command compute-particles demonstrates a GPU particle simulation using a compute shader. Particles attract toward the center and repel from sampled neighbors. Results are read back to CPU each step.
The example is headless (no window required) and works on any supported GPU. For a windowed version with real-time rendering, see gogpu/examples/particles.
Usage: CGO_ENABLED=0 go run .
Click to show internal directories.
Click to hide internal directories.