|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
What one frame asks of a GPU-simulated emitter: how long to advance, how many to spawn and where in the ring they go. More...
#include <ParticleSystem.hpp>
Public Attributes | |
| f32 | dt = 0.0f |
| f32 | noiseTime = 0.0f |
| u32 | capacity = 0 |
| u32 | firstIndex = 0 |
| Absolute index of the first particle born this step (slot = index % capacity). | |
| u32 | spawnCount = 0 |
| Born this step: smoothCount spread across dt, then the rest as one burst. | |
| u32 | smoothCount = 0 |
| u32 | drawCount = 0 |
| Slots that may hold a live particle once this step has run. | |
| bool | reset = false |
| Kill everything first (a reset() since the last step). | |
| bool | fed = false |
| A GPU parent's events spawn into it, so any slot may be live whatever was scheduled. | |
What one frame asks of a GPU-simulated emitter: how long to advance, how many to spawn and where in the ring they go.
Definition at line 91 of file ParticleSystem.hpp.
| u32 esengine::particle::GpuStep::capacity = 0 |
Definition at line 94 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::peekGpuStep().
| u32 esengine::particle::GpuStep::drawCount = 0 |
Slots that may hold a live particle once this step has run.
Definition at line 98 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::peekGpuStep().
| f32 esengine::particle::GpuStep::dt = 0.0f |
Definition at line 92 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::peekGpuStep().
| bool esengine::particle::GpuStep::fed = false |
A GPU parent's events spawn into it, so any slot may be live whatever was scheduled.
Definition at line 100 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::peekGpuStep().
| u32 esengine::particle::GpuStep::firstIndex = 0 |
Absolute index of the first particle born this step (slot = index % capacity).
Definition at line 95 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::peekGpuStep().
| f32 esengine::particle::GpuStep::noiseTime = 0.0f |
Definition at line 93 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::peekGpuStep().
| bool esengine::particle::GpuStep::reset = false |
Kill everything first (a reset() since the last step).
Definition at line 99 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::peekGpuStep().
| u32 esengine::particle::GpuStep::smoothCount = 0 |
Definition at line 97 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::peekGpuStep().
| u32 esengine::particle::GpuStep::spawnCount = 0 |
Born this step: smoothCount spread across dt, then the rest as one burst.
Definition at line 96 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::peekGpuStep().