2020-04-16 18:14:09 -07:00
|
|
|
fn main() {
|
2020-04-18 17:04:19 -07:00
|
|
|
let mod_name = std::env::args()
|
|
|
|
.skip(1)
|
|
|
|
.next()
|
|
|
|
.expect("provide a module name");
|
2020-04-16 18:14:09 -07:00
|
|
|
match mod_name.as_str() {
|
|
|
|
"scene" => print!("{}", piet_gpu_types::scene::gen_gpu_scene()),
|
2020-05-11 20:01:06 -07:00
|
|
|
"state" => print!("{}", piet_gpu_types::state::gen_gpu_state()),
|
2020-05-12 10:53:54 -07:00
|
|
|
"annotated" => print!("{}", piet_gpu_types::annotated::gen_gpu_annotated()),
|
2020-06-02 17:10:20 -07:00
|
|
|
"pathseg" => print!("{}", piet_gpu_types::pathseg::gen_gpu_pathseg()),
|
2020-05-12 13:38:26 -07:00
|
|
|
"bins" => print!("{}", piet_gpu_types::bins::gen_gpu_bins()),
|
2020-06-02 17:10:20 -07:00
|
|
|
"tile" => print!("{}", piet_gpu_types::tile::gen_gpu_tile()),
|
2020-04-20 17:15:36 -07:00
|
|
|
"tilegroup" => print!("{}", piet_gpu_types::tilegroup::gen_gpu_tilegroup()),
|
2020-04-16 18:14:09 -07:00
|
|
|
"ptcl" => print!("{}", piet_gpu_types::ptcl::gen_gpu_ptcl()),
|
2020-04-18 17:04:19 -07:00
|
|
|
"test" => print!("{}", piet_gpu_types::test::gen_gpu_test()),
|
2020-04-16 18:14:09 -07:00
|
|
|
_ => println!("Oops, unknown module name"),
|
|
|
|
}
|
|
|
|
}
|