MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / CanSim

Method CanSim

Source/Engine/Particles/Graph/GPU/GPUParticles.cpp:133–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133bool 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
143void GPUParticles::PreSim(GPUContext* context, ParticleEmitter* emitter, ParticleEffect* effect, int32 emitterIndex, ParticleEmitterInstance& data)
144{

Callers 1

UpdateGPUFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected