Skip to content

Commit 2c22491

Browse files
committed
vello_hybrid backend WIP
Signed-off-by: Nico Burns <nico@nicoburns.com>
1 parent 488504e commit 2c22491

File tree

11 files changed

+624
-7
lines changed

11 files changed

+624
-7
lines changed

Cargo.lock

Lines changed: 65 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ members = [
33
"crates/anyrender",
44
"crates/anyrender_vello",
55
"crates/anyrender_vello_cpu",
6+
"crates/anyrender_vello_hybrid",
67
"crates/anyrender_svg",
78
"crates/wgpu_context",
89
"crates/pixels_window_renderer",
@@ -26,6 +27,7 @@ rust-version = "1.86.0"
2627
anyrender = { version = "0.6.0", path = "./crates/anyrender" }
2728
anyrender_vello = { version = "0.6.0", path = "./crates/anyrender_vello" }
2829
anyrender_vello_cpu = { version = "0.7.0", path = "./crates/anyrender_vello_cpu" }
30+
anyrender_vello_hybrid = { version = "0.1.0", path = "./crates/anyrender_vello_hybrid" }
2931
anyrender_svg = { version = "0.6.0", path = "./crates/anyrender_svg" }
3032
wgpu_context = { version = "0.1.0", path = "./crates/wgpu_context" }
3133
pixels_window_renderer = { version = "0.1.0", path = "./crates/pixels_window_renderer" }
@@ -38,6 +40,8 @@ peniko = "0.5.0"
3840
kurbo = "0.12"
3941
vello = { version = "0.6", features = [ "wgpu" ] }
4042
vello_cpu = { version = "0.0.3", default-features = false, features = ["std", "text"]}
43+
vello_hybrid = { git = "https://github.com/linebender/vello", rev = "59460521d4487f1d285cad45c7b4daabf0d95161" }
44+
vello_common = { git = "https://github.com/linebender/vello", rev = "59460521d4487f1d285cad45c7b4daabf0d95161" }
4145

4246
# Rendering
4347
wgpu = "26"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[package]
2+
name = "anyrender_vello_hybrid"
3+
description = "vello_hybrid backend for anyrender"
4+
version = "0.1.0"
5+
documentation = "https://docs.rs/anyrender_vello_hybrid"
6+
homepage.workspace = true
7+
repository.workspace = true
8+
license.workspace = true
9+
edition.workspace = true
10+
publish = false
11+
12+
[features]
13+
log_frame_times = ["debug_timer/enable"]
14+
15+
[dependencies]
16+
anyrender = { workspace = true }
17+
debug_timer = { workspace = true }
18+
kurbo = { workspace = true }
19+
peniko = { workspace = true }
20+
vello_hybrid = { workspace = true }
21+
vello_common = { workspace = true }
22+
raw-window-handle = { workspace = true }
23+
wgpu = { workspace = true }
24+
futures-intrusive = { workspace = true }
25+
pollster = { workspace = true }
26+
rustc-hash = { workspace = true }
27+
wgpu_context = { workspace = true }
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//! An Anyrender backend using the vello_cpu crate
2+
#![cfg_attr(docsrs, feature(doc_cfg))]
3+
4+
mod scene;
5+
mod window_renderer;
6+
7+
pub use scene::VelloHybridScenePainter;
8+
pub use window_renderer::*;

0 commit comments

Comments
 (0)