mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
* Revamp examples to match website * Small fixes * Fix stencil_triangles on resize * Fix * Fix everything
28 lines
592 B
Rust
28 lines
592 B
Rust
use cli::Args;
|
|
|
|
mod cli;
|
|
mod run_wasm;
|
|
mod test;
|
|
mod util;
|
|
|
|
fn main() -> anyhow::Result<()> {
|
|
env_logger::builder()
|
|
.filter_level(log::LevelFilter::Info)
|
|
.parse_default_env()
|
|
.format_indent(Some(0))
|
|
.init();
|
|
|
|
let args = Args::parse();
|
|
|
|
run(args)
|
|
}
|
|
|
|
#[allow(unused_mut, unreachable_patterns)]
|
|
fn run(mut args: Args) -> anyhow::Result<()> {
|
|
match args.subcommand {
|
|
cli::Subcommand::RunWasm => run_wasm::run_wasm(args.command_args),
|
|
cli::Subcommand::Test => test::run_tests(args.command_args),
|
|
_ => unreachable!(),
|
|
}
|
|
}
|