Skip to content

Commit

Permalink
Add Batcher utility (djeedai#211)
Browse files Browse the repository at this point in the history
Add a new internal `Batcher` utility used to batch particle effects for
submission to GPU. This replaces the ad hoc code previously used
directly in the `prepare_effects()` system, which was hard to maintain
and to test, and the source of numerous bugs and regressions.
  • Loading branch information
djeedai authored Jul 22, 2023
1 parent 56b2dd4 commit 49847d2
Show file tree
Hide file tree
Showing 4 changed files with 945 additions and 327 deletions.
2 changes: 1 addition & 1 deletion src/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ impl ParticleLayout {
/// The layout is immutable. This is mostly used as a placeholder while a
/// valid layout is not available yet. To create a new non-finalized layout
/// which can be mutated, use [`ParticleLayout::new()`] instead.
pub fn empty() -> ParticleLayout {
pub const fn empty() -> ParticleLayout {
Self { layout: vec![] }
}

Expand Down
Loading

0 comments on commit 49847d2

Please sign in to comment.