Add Table<Color> as a graphical type (#3033)

* Reduce code duplication in bounding box impls on Table

* Working Table<Color> rendering in the graph

* Implement color and fix other rendering with Vello and polish
This commit is contained in:
Keavon Chambers 2025-08-10 01:34:33 -07:00 committed by GitHub
parent 81abfe147a
commit 2f4aef34e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 462 additions and 198 deletions

View file

@ -29,6 +29,7 @@ impl RenderComplexity for Graphic {
Self::Vector(table) => table.render_complexity(),
Self::RasterCPU(table) => table.render_complexity(),
Self::RasterGPU(table) => table.render_complexity(),
Self::Color(table) => table.render_complexity(),
}
}
}
@ -52,6 +53,12 @@ impl RenderComplexity for Raster<GPU> {
}
}
impl RenderComplexity for Color {
fn render_complexity(&self) -> usize {
1
}
}
impl RenderComplexity for String {}
impl RenderComplexity for bool {}
impl RenderComplexity for f32 {}