-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an index argument to parallel iteration helpers in bevy_tasks (#1…
…2169) # Objective `bevy_tasks` provides utilities for parallel mapping over slices. It can be useful to have a chunk index available in the iteration function to know which part of the original slice is being processed. ## Solution Adds an index argument to the parallel map functions in `bevy_tasks`. --- ## Changelog ### Changed - `par_chunk_map`, `par_splat_map`, `par_chunk_map_mut`, and `par_splat_map_mut` now provide a chunk index during iteration. ## Migration Guide Functions passed as arguments to `par_chunk_map`, `par_splat_map`, `par_chunk_map_mut`, and `par_splat_map_mut` must now take an additional index argument.
- Loading branch information
Showing
1 changed file
with
39 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters