Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_array_utils.hh
| Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | devirtualize_varray(src, [&](const auto &src) { | ||||
| threading::parallel_for(indices.index_range(), grain_size, [&](const IndexRange range) { | threading::parallel_for(indices.index_range(), grain_size, [&](const IndexRange range) { | ||||
| for (const int64_t i : range) { | for (const int64_t i : range) { | ||||
| dst[i] = src[indices[i]]; | dst[i] = src[indices[i]]; | ||||
| } | } | ||||
| }); | }); | ||||
| }); | }); | ||||
| } | } | ||||
| void invert_booleans(MutableSpan<bool> span); | |||||
| } // namespace blender::array_utils | } // namespace blender::array_utils | ||||