Implement basic layer merging for graphics::layer::Stack

This commit is contained in:
Héctor Ramón Jiménez 2025-08-16 23:15:20 +02:00
parent 95769fcd59
commit d3e9547079
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
6 changed files with 122 additions and 17 deletions

View file

@ -304,6 +304,12 @@ impl Batch {
self.gradients.clear();
self.order.clear();
}
pub fn append(&mut self, batch: &mut Batch) {
self.solids.append(&mut batch.solids);
self.gradients.append(&mut batch.gradients);
self.order.append(&mut batch.order);
}
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]