diff --git a/.gitignore b/.gitignore index ad0306f..2a2be18 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ /target Cargo.lock + examples/assets/downloads/* !examples/assets/downloads/.tracked +examples/headless/outputs/* +!examples/headless/outputs/.tracked diff --git a/Cargo.toml b/Cargo.toml index d0ded0e..bf92017 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ resolver = "2" members = [ "integrations/vello_svg", + "examples/headless", "examples/with_winit", "examples/with_bevy", "examples/run_wasm", diff --git a/examples/headless/Cargo.toml b/examples/headless/Cargo.toml new file mode 100644 index 0000000..2b310eb --- /dev/null +++ b/examples/headless/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "headless" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +vello = { path = "../../" } +clap = { workspace = true } diff --git a/examples/headless/outputs/.tracked b/examples/headless/outputs/.tracked new file mode 100644 index 0000000..e69de29 diff --git a/examples/headless/src/main.rs b/examples/headless/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/examples/headless/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/src/lib.rs b/src/lib.rs index 30f3bc8..4116f49 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -196,7 +196,7 @@ impl Renderer { return Err("channel was closed".into()); } let mapped = buf_slice.get_mapped_range(); - println!("{:?}", bytemuck::cast_slice::<_, u32>(&mapped)); + // println!("{:?}", bytemuck::cast_slice::<_, u32>(&mapped)); } // TODO: apply logic to determine whether we need to rerun coarse, and also // allocate the blend stack as needed.