|
Blender V5.0
|
#include <BKE_attribute_math.hh>
Public Member Functions | |
| SimpleMixerWithAccumulationType (MutableSpan< T > buffer, T default_value={}) | |
| SimpleMixerWithAccumulationType (MutableSpan< T > buffer, const IndexMask &mask, T default_value={}) | |
| void | set (const int64_t index, const T &value, const float weight=1.0f) |
| void | mix_in (const int64_t index, const T &value, const float weight=1.0f) |
| void | finalize () |
| void | finalize (const IndexMask &mask) |
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 439 of file BKE_attribute_math.hh.
|
inline |
Definition at line 452 of file BKE_attribute_math.hh.
|
inline |
| mask | Only initialize these indices. Other indices in the buffer will be invalid. |
Definition at line 460 of file BKE_attribute_math.hh.
|
inline |
Definition at line 484 of file BKE_attribute_math.hh.
|
inline |
Definition at line 489 of file BKE_attribute_math.hh.
|
inline |
Definition at line 476 of file BKE_attribute_math.hh.
|
inline |
Definition at line 468 of file BKE_attribute_math.hh.