mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 20:51:29 +11:00
294f6fd1db
Path segments are unsorted, but other elements are using the same sort-middle approach as before. This is a checkpoint. At this point, there are unoptimized versions of tile init and coarse path raster, but it isn't wired up into a working pipeline. Also observing about a 3x performance regression in element processing, which needs to be investigated.
19 lines
888 B
Rust
19 lines
888 B
Rust
fn main() {
|
|
let mod_name = std::env::args()
|
|
.skip(1)
|
|
.next()
|
|
.expect("provide a module name");
|
|
match mod_name.as_str() {
|
|
"scene" => print!("{}", piet_gpu_types::scene::gen_gpu_scene()),
|
|
"state" => print!("{}", piet_gpu_types::state::gen_gpu_state()),
|
|
"annotated" => print!("{}", piet_gpu_types::annotated::gen_gpu_annotated()),
|
|
"pathseg" => print!("{}", piet_gpu_types::pathseg::gen_gpu_pathseg()),
|
|
"bins" => print!("{}", piet_gpu_types::bins::gen_gpu_bins()),
|
|
"tile" => print!("{}", piet_gpu_types::tile::gen_gpu_tile()),
|
|
"tilegroup" => print!("{}", piet_gpu_types::tilegroup::gen_gpu_tilegroup()),
|
|
"ptcl" => print!("{}", piet_gpu_types::ptcl::gen_gpu_ptcl()),
|
|
"test" => print!("{}", piet_gpu_types::test::gen_gpu_test()),
|
|
_ => println!("Oops, unknown module name"),
|
|
}
|
|
}
|