|
Blender
V2.93
|
#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 159 of file BKE_attribute_math.hh.
|
inline |
Definition at line 172 of file BKE_attribute_math.hh.
|
inline |
Definition at line 185 of file BKE_attribute_math.hh.
References blender::MutableSpan< T >::index_range(), and T.
|
inline |
Definition at line 177 of file BKE_attribute_math.hh.