Skip to content

Commit

Permalink
Bump vello (and wgpu versions) (#122)
Browse files Browse the repository at this point in the history
Updates xilem to the latest vello. Also bumps wgpu to 0.17.0.

This should enable CFF/CFF2 support.
  • Loading branch information
dfrg authored Aug 7, 2023
1 parent 29aecdc commit 2f9f5b6
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 46 deletions.
111 changes: 68 additions & 43 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ wayland = ["glazier/wayland"]

[dependencies]
xilem_core.workspace = true
vello = { git = "https://github.com/linebender/vello", rev = "006faab69fc519c9c7ed6002be740914efad9ffe" }
wgpu = "0.16.0"
vello = { git = "https://github.com/linebender/vello", rev = "3cb54627de0c1fc40af46429ae67458f07174713" }
wgpu = "0.17.0"
parley = { git = "https://github.com/dfrg/parley", rev = "2371bf4b702ec91edee2d58ffb2d432539580e1e" }
tokio = { version = "1.21", features = ["full"] }
futures-task = "0.3"
Expand Down
4 changes: 3 additions & 1 deletion src/app_main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ where
//println!("render size: {:?}", size);
self.surface = Some(
tokio::runtime::Handle::current()
.block_on(self.render_cx.create_surface(handle, width, height)),
.block_on(self.render_cx.create_surface(handle, width, height))
.unwrap(),
);
}
if let Some(surface) = self.surface.as_mut() {
Expand All @@ -242,6 +243,7 @@ where
let queue = &self.render_cx.devices[dev_id].queue;
let renderer_options = RendererOptions {
surface_format: Some(surface.format),
timestamp_period: queue.get_timestamp_period(),
};
let render_params = RenderParams {
base_color: Color::BLACK,
Expand Down

0 comments on commit 2f9f5b6

Please sign in to comment.