-
Notifications
You must be signed in to change notification settings - Fork 0
Fix render layer change propagation for GPU-culled meshes #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -250,15 +250,6 @@ impl RenderVisibleEntitiesClass { | |
| } | ||
| } | ||
|
|
||
| /// Adds a new entity to the [`Self::added_entities`] list. | ||
| /// | ||
| /// After calling this method one or more times, you must call | ||
| /// [`Self::sort_added_entities`] to ensure the [`Self::added_entities`] | ||
| /// list is sorted. | ||
| pub fn add_entity(&mut self, pair: (Entity, MainEntity)) { | ||
| self.added_entities.push(pair); | ||
| } | ||
|
|
||
| /// Returns the list of newly-added entities. | ||
| pub fn added_entities(&self) -> &[(Entity, MainEntity)] { | ||
| &self.added_entities | ||
|
|
@@ -297,8 +288,8 @@ impl RenderVisibleEntitiesClass { | |
|
|
||
| /// Sorts the [`Self::added_entities`] list. | ||
| /// | ||
| /// You must call this after adding entities to the list via | ||
| /// [`Self::add_entity`]. | ||
| /// You must call this after pushing entities onto the list, as the | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is good, i was worried people are using this public api, dont know if this requires a migration guide? |
||
| /// `DirtySpecializations` iterator will binary search it. | ||
| pub fn sort_added_entities(&mut self) { | ||
| self.added_entities | ||
| .sort_unstable_by_key(|(_, main_entity)| *main_entity); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.