Skip to content

Commit

Permalink
Fix despawn (#361)
Browse files Browse the repository at this point in the history
* simplify RenderResourcesNode gpu array management

* support removals in RenderResourcesNode
  • Loading branch information
cart authored Aug 27, 2020
1 parent 93040ef commit 89a1d36
Show file tree
Hide file tree
Showing 3 changed files with 229 additions and 248 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_derive/src/render_resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub fn derive_render_resources(input: TokenStream) -> TokenStream {
}
}

fn iter_render_resources(&self) -> #bevy_render_path::renderer::RenderResourceIterator {
fn iter(&self) -> #bevy_render_path::renderer::RenderResourceIterator {
#bevy_render_path::renderer::RenderResourceIterator::new(self)
}
}
Expand Down Expand Up @@ -167,7 +167,7 @@ pub fn derive_render_resources(input: TokenStream) -> TokenStream {
#render_resource_hints_ident[index].clone()
}

fn iter_render_resources(&self) -> #bevy_render_path::renderer::RenderResourceIterator {
fn iter(&self) -> #bevy_render_path::renderer::RenderResourceIterator {
#bevy_render_path::renderer::RenderResourceIterator::new(self)
}
}
Expand Down
Loading

0 comments on commit 89a1d36

Please sign in to comment.