HighMap library (C++)
Loading...
Searching...
No Matches
advection_particle.hpp File Reference

Header file for GPU particle-based advection functions. More...

Go to the source code of this file.

Namespaces

namespace  hmap
namespace  hmap::gpu

Functions

Array hmap::gpu::advection_particle (const Array &z, const Array &advected_field, int iterations, int nparticles, std::uint32_t seed, bool reverse=false, bool post_filter=true, float post_filter_sigma=0.125f, float advection_length=0.1f, float value_persistence=0.99f, float inertia=0.f, const Array *p_advection_mask=nullptr, const Array *p_mask=nullptr)
 Performs particle-based advection on a scalar field.
std::vector< Array > hmap::gpu::advection_particle (const Array &z, const std::vector< const Array * > &advected_fields, int iterations, int nparticles, std::uint32_t seed, bool reverse=false, bool post_filter=true, float post_filter_sigma=0.125f, float advection_length=0.1f, float value_persistence=0.99f, float inertia=0.f, const Array *p_advection_mask=nullptr, const Array *p_mask=nullptr)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
std::vector< Array > hmap::gpu::advection_particle (const Array &z, const std::vector< Array > &advected_fields, int iterations, int nparticles, std::uint32_t seed, bool reverse=false, bool post_filter=true, float post_filter_sigma=0.125f, float advection_length=0.1f, float value_persistence=0.99f, float inertia=0.f, const Array *p_advection_mask=nullptr, const Array *p_mask=nullptr)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Array hmap::gpu::advection_particle (const Array &z, const Array &advected_field, int nparticles, std::uint32_t seed, bool reverse=false, bool post_filter=true, float post_filter_sigma=0.125f, float advection_length=0.1f, float value_persistence=0.99f, float inertia=0.f, const Array *p_advection_mask=nullptr, const Array *p_mask=nullptr)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
std::vector< Array > hmap::gpu::advection_particle (const Array &z, const std::vector< const Array * > &advected_fields, int nparticles, std::uint32_t seed, bool reverse=false, bool post_filter=true, float post_filter_sigma=0.125f, float advection_length=0.1f, float value_persistence=0.99f, float inertia=0.f, const Array *p_advection_mask=nullptr, const Array *p_mask=nullptr)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
std::vector< Array > hmap::gpu::advection_particle (const Array &z, const std::vector< Array > &advected_fields, int nparticles, std::uint32_t seed, bool reverse=false, bool post_filter=true, float post_filter_sigma=0.125f, float advection_length=0.1f, float value_persistence=0.99f, float inertia=0.f, const Array *p_advection_mask=nullptr, const Array *p_mask=nullptr)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Array hmap::gpu::advection_particle (const Array &dx, const Array &dy, const Array &advected_field, int nparticles, std::uint32_t seed, bool reverse=false, bool post_filter=true, float post_filter_sigma=0.125f, float advection_length=0.1f, float value_persistence=0.99f, float inertia=0.f, const Array *p_advection_mask=nullptr, const Array *p_mask=nullptr)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
std::vector< Array > hmap::gpu::advection_particle (const Array &dx, const Array &dy, const std::vector< const Array * > &advected_fields, int nparticles, std::uint32_t seed, bool reverse=false, bool post_filter=true, float post_filter_sigma=0.125f, float advection_length=0.1f, float value_persistence=0.99f, float inertia=0.f, const Array *p_advection_mask=nullptr, const Array *p_mask=nullptr)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
std::vector< Array > hmap::gpu::advection_particle (const Array &dx, const Array &dy, const std::vector< Array > &advected_fields, int nparticles, std::uint32_t seed, bool reverse=false, bool post_filter=true, float post_filter_sigma=0.125f, float advection_length=0.1f, float value_persistence=0.99f, float inertia=0.f, const Array *p_advection_mask=nullptr, const Array *p_mask=nullptr)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Texture hmap::gpu::advection_particle (const Array &z, const Texture &texture, int iterations, int nparticles, std::uint32_t seed, bool reverse=false, bool post_filter=true, float post_filter_sigma=0.125f, float advection_length=0.1f, float value_persistence=0.99f, float inertia=0.f, const Array *p_advection_mask=nullptr, const Array *p_mask=nullptr)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Texture hmap::gpu::advection_particle (const Array &z, const Texture &texture, int nparticles, std::uint32_t seed, bool reverse=false, bool post_filter=true, float post_filter_sigma=0.125f, float advection_length=0.1f, float value_persistence=0.99f, float inertia=0.f, const Array *p_advection_mask=nullptr, const Array *p_mask=nullptr)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Array hmap::gpu::advection_particle_multiscale (const Array &z, const Array &advected_field, std::uint32_t seed, const std::vector< int > &steps_per_level={4, 2, 1}, float particles_ratio=0.5f, float advection_length=0.1f, float value_persistence=0.99f, float inertia=0.f, float mix=1.f, float warp=0.f, bool reverse=false, bool post_filter=true, float post_filter_sigma=0.125f, const Array *p_advection_mask=nullptr, const Array *p_mask=nullptr)
 Performs multiscale particle-based advection on a scalar field.
std::vector< Array > hmap::gpu::advection_particle_multiscale (const Array &z, const std::vector< const Array * > &advected_fields, std::uint32_t seed, const std::vector< int > &steps_per_level={4, 2, 1}, float particles_ratio=0.5f, float advection_length=0.1f, float value_persistence=0.99f, float inertia=0.f, float mix=1.f, float warp=0.f, bool reverse=false, bool post_filter=true, float post_filter_sigma=0.125f, const Array *p_advection_mask=nullptr, const Array *p_mask=nullptr)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
std::vector< Array > hmap::gpu::advection_particle_multiscale (const Array &z, const std::vector< Array > &advected_fields, std::uint32_t seed, const std::vector< int > &steps_per_level={4, 2, 1}, float particles_ratio=0.5f, float advection_length=0.1f, float value_persistence=0.99f, float inertia=0.f, float mix=1.f, float warp=0.f, bool reverse=false, bool post_filter=true, float post_filter_sigma=0.125f, const Array *p_advection_mask=nullptr, const Array *p_mask=nullptr)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Texture hmap::gpu::advection_particle_multiscale (const Array &z, const Texture &texture, std::uint32_t seed, const std::vector< int > &steps_per_level={4, 2, 1}, float particles_ratio=0.5f, float advection_length=0.1f, float value_persistence=0.99f, float inertia=0.f, float mix=1.f, float warp=0.f, bool reverse=false, bool post_filter=true, float post_filter_sigma=0.125f, const Array *p_advection_mask=nullptr, const Array *p_mask=nullptr)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Detailed Description

Header file for GPU particle-based advection functions.

Author
Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)