|
Blender V5.3
|
Functions | |
| TEST (offset_indices, SumSizes) | |
| TEST (offset_indices, build_groups_from_indices) | |
| static void | test_build_groups_from_indices (const int64_t groups_num, const int64_t indices_num, const bool clustered) |
| TEST (offset_indices, build_groups_from_indices_few_groups) | |
| TEST (offset_indices, build_groups_from_indices_many_groups) | |
| TEST (offset_indices, build_groups_from_indices_atomic) | |
| TEST (offset_indices, build_groups_from_indices_small) | |
| static void | test_build_groups_from_indices_mask (const int64_t groups_num, const int64_t indices_num) |
| TEST (offset_indices, build_groups_from_indices_mask) | |
| static void | test_reverse_indices_in_value_groups (const int64_t groups_num, const int64_t indices_num) |
| TEST (offset_indices, reverse_indices_in_value_groups) | |
| static void | test_reverse_indices_in_uniform_value_groups (const int64_t groups_num, const int64_t pairs_num) |
| TEST (offset_indices, reverse_indices_in_uniform_value_groups) | |
| blender::offset_indices::tests::TEST | ( | offset_indices | , |
| build_groups_from_indices | ) |
Definition at line 31 of file BLI_offset_indices_test.cc.
References blender::offset_indices::build_groups_from_indices(), blender::data, blender::EXPECT_EQ(), EXPECT_TRUE, blender::offset_indices::GroupedSpan< T >::offsets, blender::offset_indices::GroupedSpan< T >::size(), TEST(), and blender::OffsetIndices< T >::total_size().
| blender::offset_indices::tests::TEST | ( | offset_indices | , |
| build_groups_from_indices_atomic | ) |
Definition at line 110 of file BLI_offset_indices_test.cc.
References TEST(), and test_build_groups_from_indices().
| blender::offset_indices::tests::TEST | ( | offset_indices | , |
| build_groups_from_indices_few_groups | ) |
Definition at line 98 of file BLI_offset_indices_test.cc.
References TEST(), and test_build_groups_from_indices().
| blender::offset_indices::tests::TEST | ( | offset_indices | , |
| build_groups_from_indices_many_groups | ) |
Definition at line 104 of file BLI_offset_indices_test.cc.
References TEST(), and test_build_groups_from_indices().
| blender::offset_indices::tests::TEST | ( | offset_indices | , |
| build_groups_from_indices_mask | ) |
Definition at line 152 of file BLI_offset_indices_test.cc.
References TEST(), and test_build_groups_from_indices_mask().
| blender::offset_indices::tests::TEST | ( | offset_indices | , |
| build_groups_from_indices_small | ) |
Definition at line 116 of file BLI_offset_indices_test.cc.
References TEST(), and test_build_groups_from_indices().
| blender::offset_indices::tests::TEST | ( | offset_indices | , |
| reverse_indices_in_uniform_value_groups | ) |
Definition at line 233 of file BLI_offset_indices_test.cc.
References TEST(), and test_reverse_indices_in_uniform_value_groups().
| blender::offset_indices::tests::TEST | ( | offset_indices | , |
| reverse_indices_in_value_groups | ) |
Definition at line 202 of file BLI_offset_indices_test.cc.
References TEST(), and test_reverse_indices_in_value_groups().
| blender::offset_indices::tests::TEST | ( | offset_indices | , |
| SumSizes | ) |
Definition at line 19 of file BLI_offset_indices_test.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::data, blender::EXPECT_EQ(), blender::IndexMask::IndexMask(), blender::IndexRange::IndexRange(), blender::offset_indices::sum_group_sizes(), and TEST().
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
|
static |
Check build_groups_from_indices against a simple reference implementation, for enough indices to use the parallel code paths. The number of groups selects between counting per chunk and filling the groups with atomics.
Definition at line 52 of file BLI_offset_indices_test.cc.
References blender::BLI_task_scheduler_init(), blender::offset_indices::build_groups_from_indices(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::Span< T >::index_range(), blender::IndexRange::IndexRange(), blender::offset_indices::GroupedSpan< T >::offsets, blender::offset_indices::GroupedSpan< T >::size(), blender::Span< T >::size(), test_build_groups_from_indices(), and blender::OffsetIndices< T >::total_size().
Referenced by TEST(), TEST(), TEST(), TEST(), and test_build_groups_from_indices().
|
static |
Definition at line 122 of file BLI_offset_indices_test.cc.
References blender::BLI_task_scheduler_init(), blender::offset_indices::build_groups_from_indices(), blender::IndexMask::from_every_nth(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::offset_indices::GroupedSpan< T >::offsets, test_build_groups_from_indices_mask(), and blender::OffsetIndices< T >::total_size().
Referenced by TEST(), and test_build_groups_from_indices_mask().
|
static |
Definition at line 209 of file BLI_offset_indices_test.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::BLI_task_scheduler_init(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::offset_indices::reverse_indices_in_groups(), blender::Array< T, InlineBufferCapacity, Allocator >::size(), and test_reverse_indices_in_uniform_value_groups().
Referenced by TEST(), and test_reverse_indices_in_uniform_value_groups().
|
static |
Definition at line 159 of file BLI_offset_indices_test.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Span< T >::begin(), blender::BLI_task_scheduler_init(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::last(), blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::offset_indices::reverse_indices_in_groups(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), test_reverse_indices_in_value_groups(), and blender::offset_indices::OffsetIndices< T >::total_size().
Referenced by TEST(), and test_reverse_indices_in_value_groups().