Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ impl Vger {
prim.tex_bounds = prim.quad_bounds;
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}

Expand Down Expand Up @@ -498,6 +499,7 @@ impl Vger {
prim.tex_bounds = prim.quad_bounds;
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}

Expand Down Expand Up @@ -530,6 +532,7 @@ impl Vger {
prim.tex_bounds = prim.quad_bounds;
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}

Expand All @@ -555,6 +558,7 @@ impl Vger {
prim.tex_bounds = prim.quad_bounds;
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}

Expand Down Expand Up @@ -585,6 +589,7 @@ impl Vger {
prim.tex_bounds = prim.quad_bounds;
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}

Expand Down Expand Up @@ -619,6 +624,7 @@ impl Vger {
prim.tex_bounds = prim.quad_bounds;
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}

Expand Down Expand Up @@ -676,7 +682,6 @@ impl Vger {
prim.quad_bounds[2] = x_interval.b;
prim.quad_bounds[3] = self.path_scanner.interval.b;
prim.tex_bounds = prim.quad_bounds;

self.render(prim);
}

Expand Down Expand Up @@ -718,6 +723,7 @@ impl Vger {
prim.paint = paint_index.index as u32;
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}
}
Expand Down Expand Up @@ -748,6 +754,7 @@ impl Vger {
];
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}
}
Expand Down Expand Up @@ -786,6 +793,7 @@ impl Vger {
}
prim.scissor = self.add_scissor() as u32;

prim.xform = self.add_xform() as u32;
self.render(prim);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/scene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ pub(crate) struct Scene {
pub bind_groups: [wgpu::BindGroup; MAX_LAYERS],
}

pub const MAX_PRIMS: usize = 65536;
pub const MAX_PRIMS: usize = 65536 * 10;

// Initial prim capacity.
pub const INIT_PRIMS: usize = 1024;
pub const INIT_PRIMS: usize = 1024 * 10;

impl Scene {
pub fn new(device: &wgpu::Device) -> Self {
Expand Down