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-05-13 06:38:26 +10:00
|
|
|
"bins" => print!("{}", piet_gpu_types::bins::gen_gpu_bins()),
|
2020-04-21 10:15:36 +10:00
|
|
|
"tilegroup" => print!("{}", piet_gpu_types::tilegroup::gen_gpu_tilegroup()),
|
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"),
|
|
|
|
}
|
|
|
|
}
|