|
Blender V4.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 412 of file BKE_attribute_math.hh.
|
inline |
Definition at line 425 of file BKE_attribute_math.hh.
|
inline |
| mask | Only initialize these indices. Other indices in the buffer will be invalid. |
Definition at line 433 of file BKE_attribute_math.hh.
|
inline |
Definition at line 457 of file BKE_attribute_math.hh.
References blender::MutableSpan< T >::index_range().
|
inline |
Definition at line 462 of file BKE_attribute_math.hh.
|
inline |
Definition at line 449 of file BKE_attribute_math.hh.
|
inline |
Definition at line 441 of file BKE_attribute_math.hh.