sizing actually working correctly now

This commit is contained in:
2025-09-16 17:31:54 -04:00
parent b48acccb8d
commit f9097807a2
17 changed files with 333 additions and 194 deletions

View File

@@ -128,7 +128,7 @@ impl Primitives {
self.run.len() != 0
}
pub fn skip(&mut self, range: &Range<usize>) {
pub fn skip(&mut self, range: &mut Range<usize>) {
if self.running() {
self.run.data.extend(&self.instances.data[range.clone()]);
self.run.assoc.extend(
@@ -137,7 +137,9 @@ impl Primitives {
.map(|i| i.duplicate()),
);
}
range.start = self.pos;
self.pos += range.len();
range.end = self.pos;
}
pub(crate) fn clear(&mut self) {
@@ -184,6 +186,7 @@ impl Primitives {
}
}
#[derive(Debug)]
pub struct PrimitiveHandle {
idx: usize,
binding: u32,