Blender
V3.3
|
#include <BKE_attribute_math.hh>
Public Member Functions | |
SimpleMixerWithAccumulationType (MutableSpan< T > buffer, T default_value={}) | |
void | mix_in (const int64_t index, const T &value, const float weight=1.0f) |
void | finalize () |
This mixer accumulates values in a type that is different from the one that is mixed. Some types cannot encode the floating point weights in their values (e.g. int and bool).
Definition at line 266 of file BKE_attribute_math.hh.
|
inline |
Definition at line 279 of file BKE_attribute_math.hh.
|
inline |
Definition at line 292 of file BKE_attribute_math.hh.
References blender::MutableSpan< T >::index_range(), and T.
|
inline |
Definition at line 284 of file BKE_attribute_math.hh.