Skip to content

Commit

Permalink
Make execute_bundles() receives IntoIterator (#2410)
Browse files Browse the repository at this point in the history
  • Loading branch information
maku693 authored Jan 20, 2022
1 parent cdd480a commit 299e6f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2628,7 +2628,7 @@ impl<'a> RenderPass<'a> {

/// Execute a [render bundle][RenderBundle], which is a set of pre-recorded commands
/// that can be run together.
pub fn execute_bundles<I: Iterator<Item = &'a RenderBundle>>(&mut self, render_bundles: I) {
pub fn execute_bundles<I: IntoIterator<Item = &'a RenderBundle>>(&mut self, render_bundles: I) {
self.id
.execute_bundles(render_bundles.into_iter().map(|rb| &rb.id))
}
Expand Down

0 comments on commit 299e6f4

Please sign in to comment.