diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-04-10 15:21:55 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-04-10 15:21:55 +0200 |
commit | abeea9920c11231ed24db00e9f68b4490c12a61b (patch) | |
tree | 8cbcc1053a0b69c12c59e8dfdbe576d13520240d /c++/particle/particle.hpp | |
parent | 4ffcce338176350465dbd4245ad443b766d196f0 (diff) |
Reworking from AoS to SoA for data handling
Diffstat (limited to 'c++/particle/particle.hpp')
-rw-r--r-- | c++/particle/particle.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/c++/particle/particle.hpp b/c++/particle/particle.hpp index fd0ff59..58c028c 100644 --- a/c++/particle/particle.hpp +++ b/c++/particle/particle.hpp @@ -20,6 +20,23 @@ template<typename T, uint64_t D> using ParticleMask = Struct< Member<Array<T,D>, "mask"> >; + +template<typename T, uint64_t D> +using Particle = Struct< + Member<ParticleRigidBody<T,D>, "rigid_body"> +>; } + +template<typename T, uint64_t D> +class particle_system { +private: + saw::data<sch::Array<sch::Particle<T,D>>> particles_; +public: + + void step(T time_step){ + for(auto& iter : particles_){ + } + } +}; } } |