mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-09 12:21:31 +11:00
Setup infra for headless examples
This commit is contained in:
parent
2690c3602d
commit
65a7970382
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,4 +1,7 @@
|
||||||
/target
|
/target
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
|
|
||||||
examples/assets/downloads/*
|
examples/assets/downloads/*
|
||||||
!examples/assets/downloads/.tracked
|
!examples/assets/downloads/.tracked
|
||||||
|
examples/headless/outputs/*
|
||||||
|
!examples/headless/outputs/.tracked
|
||||||
|
|
|
@ -4,6 +4,7 @@ resolver = "2"
|
||||||
members = [
|
members = [
|
||||||
"integrations/vello_svg",
|
"integrations/vello_svg",
|
||||||
|
|
||||||
|
"examples/headless",
|
||||||
"examples/with_winit",
|
"examples/with_winit",
|
||||||
"examples/with_bevy",
|
"examples/with_bevy",
|
||||||
"examples/run_wasm",
|
"examples/run_wasm",
|
||||||
|
|
10
examples/headless/Cargo.toml
Normal file
10
examples/headless/Cargo.toml
Normal 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 }
|
0
examples/headless/outputs/.tracked
Normal file
0
examples/headless/outputs/.tracked
Normal file
3
examples/headless/src/main.rs
Normal file
3
examples/headless/src/main.rs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
fn main() {
|
||||||
|
println!("Hello, world!");
|
||||||
|
}
|
|
@ -196,7 +196,7 @@ impl Renderer {
|
||||||
return Err("channel was closed".into());
|
return Err("channel was closed".into());
|
||||||
}
|
}
|
||||||
let mapped = buf_slice.get_mapped_range();
|
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
|
// TODO: apply logic to determine whether we need to rerun coarse, and also
|
||||||
// allocate the blend stack as needed.
|
// allocate the blend stack as needed.
|
||||||
|
|
Loading…
Reference in a new issue