Expand description
GPU Particle System
Provides fully GPU-accelerated particle simulation and rendering. Particles are simulated using compute shaders and rendered using instanced billboards.
§Architecture
ParticleSystemGpu
│
├── Compute Pass (Simulation)
│ └── Updates particle positions, velocities, lifetimes
│
└── Render Pass (Drawing)
└── Draws particle billboards as instanced quadsStructs§
- GpuEmitter
- Emitter configuration for GPU
- GpuForce
- Force affector for GPU
- GpuParticle
- GPU particle data structure Must match the WGSL struct layout exactly
- GpuRender
Uniforms - Render uniforms for vertex/fragment shaders
- GpuSimulation
Uniforms - Simulation uniforms for compute shader
- Particle
Manager - Manager for multiple particle systems
- Particle
System Gpu - Handle to a GPU particle system
- Particle
Viewport - Particle viewport data for rendering
Constants§
- MAX_
PARTICLES_ PER_ SYSTEM - Maximum particles per system for buffer allocation
- PARTICLE_
COMPUTE_ SHADER - GPU particle compute shader
- PARTICLE_
RENDER_ SHADER - GPU particle render shader (billboard quads)