| 131 | } |
| 132 | |
| 133 | bool GPUParticles::CanSim(const ParticleEmitter* emitter, const ParticleEmitterInstance& data) const |
| 134 | { |
| 135 | const int32 threads = data.Buffer->GPU.ParticlesCountMax + data.GPU.SpawnCount; |
| 136 | return data.GPU.DeltaTime > 0.0f && |
| 137 | emitter->Graph.Version == data.Version && |
| 138 | emitter->Graph.Version == data.Buffer->Version && |
| 139 | threads != 0 && |
| 140 | _mainCS; |
| 141 | } |
| 142 | |
| 143 | void GPUParticles::PreSim(GPUContext* context, ParticleEmitter* emitter, ParticleEffect* effect, int32 emitterIndex, ParticleEmitterInstance& data) |
| 144 | { |