2020-04-17 11:14:09 +10:00
|
|
|
fn main() {
|
2020-04-19 10:04:19 +10:00
|
|
|
let mod_name = std::env::args()
|
|
|
|
.skip(1)
|
|
|
|
.next()
|
|
|
|
.expect("provide a module name");
|
2020-04-17 11:14:09 +10:00
|
|
|
match mod_name.as_str() {
|
|
|
|
"scene" => print!("{}", piet_gpu_types::scene::gen_gpu_scene()),
|
2020-05-12 13:01:06 +10:00
|
|
|
"state" => print!("{}", piet_gpu_types::state::gen_gpu_state()),
|
2020-05-13 03:53:54 +10:00
|
|
|
"annotated" => print!("{}", piet_gpu_types::annotated::gen_gpu_annotated()),
|
2020-04-21 10:15:36 +10:00
|
|
|
"tilegroup" => print!("{}", piet_gpu_types::tilegroup::gen_gpu_tilegroup()),
|
2020-04-29 04:02:19 +10:00
|
|
|
"segment" => print!("{}", piet_gpu_types::segment::gen_gpu_segment()),
|
2020-05-01 10:06:01 +10:00
|
|
|
"fill_seg" => print!("{}", piet_gpu_types::fill_seg::gen_gpu_fill_seg()),
|
2020-04-17 11:14:09 +10:00
|
|
|
"ptcl" => print!("{}", piet_gpu_types::ptcl::gen_gpu_ptcl()),
|
2020-04-19 10:04:19 +10:00
|
|
|
"test" => print!("{}", piet_gpu_types::test::gen_gpu_test()),
|
2020-04-17 11:14:09 +10:00
|
|
|
_ => println!("Oops, unknown module name"),
|
|
|
|
}
|
|
|
|
}
|