DirectX Compute Particles Demo Running on NVIDIA CUDA-enabled GPU

55 751
320.4
NVIDIA1.78 млн
Опубликовано 6 апреля 2009, 20:24
This sample demonstrates the use of the DirectX compute shader to simulate a large number of colliding particles. A parallel bitonic sort implemented in the compute shader is used to sort the particles into a uniform grid data structure so that the neighbors of each particle can be found quickly. The particles collide using a simple spring and damper model, but this code could be used as the basis of more sophisticated simulations such as smoothed particle hydrodynamics. The particles are rendered as spheres using the geometry and pixel shaders.
автотехномузыкадетское