Skip to content

Commit 9f8a288

Browse files
authored
Merge branch 'trunk' into glsl-constant-id-support
2 parents 35ab6a0 + ae90040 commit 9f8a288

File tree

210 files changed

+17941
-17568
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+17941
-17568
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ jobs:
691691
run: taplo format --check --diff
692692

693693
- name: Check for typos
694-
uses: crate-ci/typos@v1.39.2
694+
uses: crate-ci/typos@v1.40.0
695695

696696
check-cts-runner:
697697
# runtime is normally 2 minutes

.github/workflows/cts.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,14 @@ jobs:
9999
if: matrix.os == 'ubuntu-24.04'
100100
uses: ./.github/actions/install-mesa
101101

102-
- name: run CTS
102+
# Mixing --llvm-cov with deno (rusty_v8) has linking problems.
103+
# Explicitly set the backend to avoid EGL messages in output,
104+
# because these tests check stdout.
105+
- name: Test cts_runner
106+
shell: bash
107+
run: DENO_WEBGPU_BACKEND=${{ matrix.backend }} cargo --locked test -p cts_runner
108+
109+
- name: Run CTS
103110
shell: bash
104111
run: cargo --locked xtask cts --llvm-cov --backend ${{ matrix.backend }}
105112

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,15 @@ One other breaking change worth noting is that in WGSL `@builtin(view_index)` no
106106

107107
By @SupaMaggie70Incorporated in [#8206](https://github.com/gfx-rs/wgpu/pull/8206).
108108

109-
#### Error Scopes are now thread-local
109+
#### Error scopes now use guards and are thread-local.
110+
111+
```diff
112+
- device.push_error_scope(wgpu::ErrorFilter::Validation);
113+
+ let scope = device.push_error_scope(wgpu::ErrorFilter::Validation);
114+
// ... perform operations on the device ...
115+
- let error: Option<Error> = device.pop_error_scope().await;
116+
+ let error: Option<Error> = scope.pop().await;
117+
```
110118

111119
Device error scopes now operate on a per-thread basis. This allows them to be used easily within multithreaded contexts,
112120
without having the error scope capture errors from other threads.
@@ -148,7 +156,7 @@ By @cwfitzgerald in [#8579](https://github.com/gfx-rs/wgpu/pull/8579).
148156
- Validation errors from `CommandEncoder::finish()` will report the label of the invalid encoder. By @kpreid in [#8449](https://github.com/gfx-rs/wgpu/pull/8449).
149157
- Corrected documentation of the minimum alignment of the *end* of a mapped range of a buffer (it is 4, not 8). By @kpreid in [#8450](https://github.com/gfx-rs/wgpu/pull/8450).
150158
- `util::StagingBelt` now takes a `Device` when it is created instead of when it is used. By @kpreid in [#8462](https://github.com/gfx-rs/wgpu/pull/8462).
151-
- `wgpu_hal::vulkan::Device::texture_from_raw` now takes an `external_memory` argument. By @s-ol in [#8512](https://github.com/gfx-rs/wgpu/pull/8512)
159+
- `wgpu_hal::vulkan::Texture` API changes to handle externally-created textures and memory more flexibly. By @s-ol in [#8512](https://github.com/gfx-rs/wgpu/pull/8512), [#8521](https://github.com/gfx-rs/wgpu/pull/8521).
152160

153161
#### Metal
154162
- Add support for mesh shaders. By @SupaMaggie70Incorporated in [#8139](https://github.com/gfx-rs/wgpu/pull/8139)

Cargo.lock

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

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ bytemuck = { version = "1.22", features = [
110110
cargo_metadata = "0.23"
111111
cfg_aliases = "0.2.1"
112112
cfg-if = "1"
113-
criterion = "0.7"
114113
codespan-reporting = { version = "0.12", default-features = false }
115114
ctor = "0.6"
116115
diff = "0.1"

benches/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ unexpected_cfgs = { level = "warn", check-cfg = [
2727
anyhow.workspace = true
2828
bincode = { workspace = true, features = ["serde"] }
2929
bytemuck.workspace = true
30-
# criterion.workspace = true
3130
naga = { workspace = true, features = [
3231
"deserialize",
3332
"serialize",

benches/benches/wgpu-benchmark/computepass.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ impl ComputepassState {
251251
.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor {
252252
label: None,
253253
bind_group_layouts: &[&bind_group_layout],
254-
push_constant_ranges: &[],
254+
immediates_ranges: &[],
255255
});
256256

257257
let pipeline =
@@ -346,7 +346,7 @@ impl ComputepassState {
346346
.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor {
347347
label: None,
348348
bind_group_layouts: &[&bindless_bind_group_layout],
349-
push_constant_ranges: &[],
349+
immediates_ranges: &[],
350350
});
351351

352352
let bindless_pipeline =

benches/benches/wgpu-benchmark/renderpass.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl RenderpassState {
151151
.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor {
152152
label: None,
153153
bind_group_layouts: &[&bind_group_layout],
154-
push_constant_ranges: &[],
154+
immediates_ranges: &[],
155155
});
156156

157157
let mut vertex_buffers = Vec::with_capacity(vertex_buffer_count as usize);
@@ -287,7 +287,7 @@ impl RenderpassState {
287287
.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor {
288288
label: None,
289289
bind_group_layouts: &[&bindless_bind_group_layout],
290-
push_constant_ranges: &[],
290+
immediates_ranges: &[],
291291
});
292292

293293
bindless_pipeline = Some(device_state.device.create_render_pipeline(

cts_runner/revision.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3ba0344b8f33cc110df0d840e09d8c0fc7b29928
1+
4595051dc14c398aad7f5df2d19cc6861e7f59ba

deno_webgpu/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ impl GPUDevice {
372372
let wgpu_descriptor = wgpu_core::binding_model::PipelineLayoutDescriptor {
373373
label: crate::transform_label(descriptor.label.clone()),
374374
bind_group_layouts: Cow::Owned(bind_group_layouts),
375-
push_constant_ranges: Default::default(),
375+
immediates_ranges: Default::default(),
376376
};
377377

378378
let (id, err) = self.instance.device_create_pipeline_layout(

0 commit comments

Comments
 (0)