Setup infra for headless examples

This commit is contained in:
Daniel McNab 2023-02-07 12:52:22 +00:00
parent 2690c3602d
commit 65a7970382
6 changed files with 18 additions and 1 deletions

3
.gitignore vendored
View file

@ -1,4 +1,7 @@
/target
Cargo.lock
examples/assets/downloads/*
!examples/assets/downloads/.tracked
examples/headless/outputs/*
!examples/headless/outputs/.tracked

View file

@ -4,6 +4,7 @@ resolver = "2"
members = [
"integrations/vello_svg",
"examples/headless",
"examples/with_winit",
"examples/with_bevy",
"examples/run_wasm",

View file

@ -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 }

View file

View file

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

View file

@ -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.