|
Blender V5.3
|
Functions | |
| IndexMask | from_predicate_impl (const IndexMask &universe, LinearAllocator<> &memory, FunctionRef< int64_t(IndexMaskSegment indices, int16_t *r_true_indices)> filter_indices, exec_mode::Mode mode) |
| template<typename T, typename SegmentT> | |
| void | gather_assign_segment (const T *__restrict src, const SegmentT segment, T *__restrict dst) |
| template<typename T, typename SegmentT> | |
| void | copy_assign_segment (const T *__restrict src, const SegmentT segment, T *__restrict dst) |
| template<typename T, typename SegmentT> | |
| void | fill_segment (T *__restrict data, const T &value, const SegmentT segment) |
| template<typename T> | |
| BLI_NOINLINE void | copy_assign (const T *__restrict src, const IndexMask &mask, T *__restrict dst) |
| template<typename T> | |
| BLI_NOINLINE void | gather_assign (const T *__restrict src, const IndexMask &indices, T *__restrict dst) |
| template<typename T> | |
| BLI_NOINLINE void | fill (T *__restrict data, const T &value, const IndexMask &mask) |
| static void | segments_from_predicate_filter (const IndexMaskSegment universe_segment, LinearAllocator<> &allocator, const FunctionRef< int64_t(IndexMaskSegment indices, int16_t *r_true_indices)> filter_indices, Vector< IndexMaskSegment, 16 > &r_segments) |
| IndexMask | from_predicate_impl (const IndexMask &universe, LinearAllocator<> &memory, const FunctionRef< int64_t(IndexMaskSegment indices, int16_t *r_true_indices)> filter_indices, const exec_mode::Mode mode) |
| BLI_NOINLINE void blender::index_mask::detail::copy_assign | ( | const T *__restrict | src, |
| const IndexMask & | mask, | ||
| T *__restrict | dst ) |
Definition at line 1232 of file BLI_index_mask.hh.
References BLI_NOINLINE, copy_assign(), copy_assign_segment(), blender::exec_mode::serial, and T.
Referenced by blender::index_mask::copy_assign(), copy_assign(), blender::cpp_type_util::copy_assign_indices_cb(), and blender::VArrayImpl_For_Span< T >::materialize().
|
inline |
Definition at line 1195 of file BLI_index_mask.hh.
References copy_assign_segment(), and T.
Referenced by copy_assign(), and copy_assign_segment().
| BLI_NOINLINE void blender::index_mask::detail::fill | ( | T *__restrict | data, |
| const T & | value, | ||
| const IndexMask & | mask ) |
Definition at line 1252 of file BLI_index_mask.hh.
References BLI_NOINLINE, blender::data, fill(), fill_segment(), blender::exec_mode::serial, and T.
Referenced by fill(), blender::cpp_type_util::fill_assign_indices_cb(), blender::index_mask::masked_fill(), and blender::VArrayImpl_For_Single< T >::materialize().
|
inline |
Definition at line 1206 of file BLI_index_mask.hh.
References blender::data, fill_segment(), blender::IndexRange::size(), blender::IndexRange::start(), T, and blender::value_is_zero_memory().
Referenced by fill(), and fill_segment().
| IndexMask blender::index_mask::detail::from_predicate_impl | ( | const IndexMask & | universe, |
| LinearAllocator<> & | memory, | ||
| const FunctionRef< int64_t(IndexMaskSegment indices, int16_t *r_true_indices)> | filter_indices, | ||
| const exec_mode::Mode | mode ) |
Definition at line 858 of file index_mask.cc.
References blender::index_mask::consolidate_index_mask_segments(), blender::data, blender::index_mask::ParallelSegmentsCollector::data_by_thread, blender::index_mask::IndexMask::foreach_segment(), from_predicate_impl(), blender::index_mask::IndexMask::from_segments(), blender::exec_mode::grain_size(), blender::exec_mode::Mode::grain_size(), blender::exec_mode::Mode::grain_size_override, blender::IndexRange::IndexRange(), blender::index_mask::IndexMask::is_empty(), blender::exec_mode::Mode::is_parallel, blender::threading::EnumerableThreadSpecific< T >::local(), blender::index_mask::ParallelSegmentsCollector::reduce(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::index_mask::IndexMask::segment(), segments_from_predicate_filter(), blender::index_mask::IndexMask::segments_num(), and blender::index_mask::IndexMask::size().
| IndexMask blender::index_mask::detail::from_predicate_impl | ( | const IndexMask & | universe, |
| LinearAllocator<> & | memory, | ||
| FunctionRef< int64_t(IndexMaskSegment indices, int16_t *r_true_indices)> | filter_indices, | ||
| exec_mode::Mode | mode ) |
References from_predicate_impl().
Referenced by blender::index_mask::IndexMask::from_predicate(), from_predicate_impl(), and from_predicate_impl().
| BLI_NOINLINE void blender::index_mask::detail::gather_assign | ( | const T *__restrict | src, |
| const IndexMask & | indices, | ||
| T *__restrict | dst ) |
Definition at line 1240 of file BLI_index_mask.hh.
References BLI_NOINLINE, blender::index_mask::IndexMask::foreach_segment_optimized(), gather_assign(), gather_assign_segment(), blender::exec_mode::serial, and T.
Referenced by blender::cpp_type_util::copy_assign_compressed_cb(), gather_assign(), blender::index_mask::gather_assign(), and blender::VArrayImpl_For_Span< T >::materialize_compressed().
|
inline |
Definition at line 1182 of file BLI_index_mask.hh.
References gather_assign_segment(), and T.
Referenced by gather_assign(), and gather_assign_segment().
|
static |
Filter the indices from #universe_segment using #filter_indices. Store the resulting indices as segments.
Definition at line 828 of file index_mask.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append_as(), blender::LinearAllocator< Allocator >::construct_array_copy(), blender::index_mask::get_static_indices_array(), blender::OffsetSpan< T, BaseT >::offset(), segments_from_predicate_filter(), blender::Span< T >::slice(), and blender::unique_sorted_indices::split_to_ranges_and_spans().
Referenced by from_predicate_impl(), and segments_from_predicate_filter().