Skip to content

Commit

Permalink
Update to wgpu 22
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Jul 19, 2024
1 parent 6a9e093 commit 261612b
Show file tree
Hide file tree
Showing 9 changed files with 272 additions and 70 deletions.
327 changes: 263 additions & 64 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static_assertions = "1.1.0"
thiserror = "1.0.61"

# NOTE: Make sure to keep this in sync with the version badge in README.md and vello/README.md
wgpu = { version = "0.20.1" }
wgpu = { version = "22.0.0" }
log = "0.4.21"
image = { version = "0.25.1", default-features = false }

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ For now, prefer updating the package-level readmes, e.g. vello/README.md.
[![Linebender Zulip](https://img.shields.io/badge/Linebender-%23gpu-blue?logo=Zulip)](https://xi.zulipchat.com/#narrow/stream/197075-gpu)
[![dependency status](https://deps.rs/repo/github/linebender/vello/status.svg)](https://deps.rs/repo/github/linebender/vello)
[![MIT/Apache 2.0](https://img.shields.io/badge/license-MIT%2FApache-blue.svg)](#license)
[![wgpu version](https://img.shields.io/badge/wgpu-v0.20.1-orange.svg)](https://crates.io/crates/wgpu)
[![wgpu version](https://img.shields.io/badge/wgpu-v22.0.0-orange.svg)](https://crates.io/crates/wgpu)

[![Crates.io](https://img.shields.io/crates/v/vello.svg)](https://crates.io/crates/vello)
[![Docs](https://docs.rs/vello/badge.svg)](https://docs.rs/vello)
Expand Down
2 changes: 1 addition & 1 deletion examples/with_winit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name = "with_winit"
crate-type = ["cdylib", "lib"]

[features]
default = ["wgpu-profiler"]
default = [] # "wgpu-profiler"]
# Enable the use of wgpu-profiler. This is an optional feature for times when we use a git dependency on
# wgpu (which means the dependency used in wgpu-profiler would be incompatible)
wgpu-profiler = ["dep:wgpu-profiler", "vello/wgpu-profiler"]
Expand Down
2 changes: 1 addition & 1 deletion vello/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![Latest published version.](https://img.shields.io/crates/v/vello.svg)](https://crates.io/crates/vello)
[![Documentation build status.](https://img.shields.io/docsrs/vello.svg)](https://docs.rs/vello)
[![Apache 2.0 or MIT license.](https://img.shields.io/badge/license-Apache--2.0_OR_MIT-blue.svg)](#license)
[![Required wgpu version.](https://img.shields.io/badge/wgpu-v0.20.1-orange.svg)](https://crates.io/crates/wgpu)
[![Required wgpu version.](https://img.shields.io/badge/wgpu-v22.0.0-orange.svg)](https://crates.io/crates/wgpu)
\
[![Linebender Zulip chat.](https://img.shields.io/badge/Linebender-%23gpu-blue?logo=Zulip)](https://xi.zulipchat.com/#narrow/stream/197075-gpu)
[![GitHub Actions CI status.](https://img.shields.io/github/actions/workflow/status/linebender/vello/ci.yml?logo=github&label=CI)](https://github.com/linebender/vello/actions)
Expand Down
1 change: 1 addition & 0 deletions vello/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ impl BlitPipeline {
alpha_to_coverage_enabled: false,
},
multiview: None,
cache: None,
});
Self {
bind_layout,
Expand Down
1 change: 1 addition & 0 deletions vello/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ impl RenderContext {
label: None,
required_features: features & maybe_features,
required_limits: limits,
memory_hints: Default::default(),
},
None,
)
Expand Down
1 change: 1 addition & 0 deletions vello/src/wgpu_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ impl WgpuEngine {
zero_initialize_workgroup_memory: false,
..Default::default()
},
cache: None,
});
WgpuShader {
pipeline,
Expand Down
4 changes: 2 additions & 2 deletions vello_shaders/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ workspace = true

[dependencies]
bytemuck = { workspace = true, optional = true }
naga = { version = "0.20.0", features = ["wgsl-in"], optional = true }
naga = { version = "22.0.0", features = ["wgsl-in"], optional = true }
thiserror = { workspace = true, optional = true }
vello_encoding = { workspace = true, optional = true }

[build-dependencies]
naga = { version = "0.20.0", features = ["wgsl-in"] }
naga = { version = "22.0.0", features = ["wgsl-in"] }
thiserror = { workspace = true }

0 comments on commit 261612b

Please sign in to comment.