|
Blender V5.3
|
#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 664 of file BKE_attribute_math.hh.
|
inline |
Definition at line 677 of file BKE_attribute_math.hh.
|
inline |
| mask | Only initialize these indices. Other indices in the buffer will be invalid. |
Definition at line 685 of file BKE_attribute_math.hh.
|
inline |
Definition at line 709 of file BKE_attribute_math.hh.
|
inline |
Definition at line 714 of file BKE_attribute_math.hh.
|
inline |
Definition at line 701 of file BKE_attribute_math.hh.
|
inline |
Definition at line 693 of file BKE_attribute_math.hh.