9794 Commits

Author SHA1 Message Date
renovate[bot]
d15e6e6f5f
chore(deps): update cts digest to dd4ecea (#8337)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-13 07:18:57 -07:00
Jim Blandy
1cbebdcffe
[core] Don't skip binding index checks for derived layouts. (#8325)
When deriving a bind group layout for a pipeline, bother to enforce
`wgpu_types::Limits::max_bindings_per_bind_group`. Move the check:

- from `wgpu_core::device::bgl::EntryMap::from_entries`, which is only used
  for explicit bind group creation

- into `wgpu_core::device::Device::create_bind_group_layout`, which is used
  for all bind group layout creation.
2025-10-10 16:38:35 +00:00
Tom Schuster
2e48faf95d
Map more limits in WebGPU (#8328) 2025-10-10 12:11:16 -04:00
Robin Cramer
d0bb62a157
Added from_custom to texture (#8315) 2025-10-09 17:22:54 +02:00
Andy Leiserson
3958790a85
refactor: Split finish between Global and CommandEncoder (#8288) 2025-10-09 15:13:45 +02:00
Erich Gubler
adf4b2f2de fix: reject fragment shader output locations > max_color_attachments limit 2025-10-08 16:34:43 -04:00
Erich Gubler
1f91bfe465 refactor: check_stage: convert if to match for I/O checks 2025-10-08 16:34:43 -04:00
Erich Gubler
93692470ab refactor: Interface::check_stage: use concat!(…) for non-invariant @builtin(position) warning 2025-10-08 16:34:43 -04:00
Erich Gubler
bbedf6c226
docs(CHANGELOG): polish enumerate_adapters-is-async section (#8318)
* docs(CHANGELOG): polish `enumerate_adapters`-is-`async` section

* docs(CHANGELOG): indirectly acknowledge "yield" joke
2025-10-08 18:19:00 +00:00
Sam
a8f51f8fd1
Split MipmapFilterMode from FilterMode (#8314) 2025-10-08 18:06:33 +02:00
Erich Gubler
8ff1eb995d
typo(CHANGELOG): s/elimnating/eliminating (#8317) 2025-10-07 12:23:06 -07:00
renovate[bot]
854664a90d
chore(deps): update crate-ci/typos action to v1.37.3 (#8306)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2025-10-06 19:32:39 +00:00
Robin Cramer
4652ea4189
Changed enumerate_adapters to be able to work with custom backends (#8230)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2025-10-06 19:27:23 +00:00
Teodor Tanasoaia
1072b87894
Fix stray comma in function signatures in Metal (#8311)
Fixes a regression introduced by #8265 where we were mistakenly writing a comma before the first buffer argument (if no other arguments were printed before it).
2025-10-06 18:59:45 +00:00
Connor Fitzgerald
ad15442b89
Improve error message when image write without format used (#8294) 2025-10-06 19:25:25 +02:00
Connor Fitzgerald
e73d0558f0
Fix docs.rs build (#8292) 2025-10-06 13:11:48 -04:00
Connor Fitzgerald
d28fb4d776
Update changelog for release v27.0.2 (#8293) 2025-10-06 13:11:35 -04:00
renovate[bot]
abc2dfab52
chore(deps): update cts digest to 9fe13c9 (#8305)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-06 09:00:33 -07:00
Clar Fon
790235717e
Make include_spirv actually work statically (#8250) 2025-10-04 09:50:52 +02:00
Andy Leiserson
334170b21e
Block creating mesh shader pipelines when the feature is not available (#8298) 2025-10-04 03:12:52 -04:00
David Stern
b3c6a0b5cc
Gate DX12 mesh shader command signature initialization on device support. (#8297) 2025-10-04 00:41:58 +00:00
Connor Fitzgerald
482a983e10
Release v27 (#8287) naga-cli-v27.0.0 naga-v27.0.0 v27.0.0 wgpu-core-deps-apple-v27.0.0 wgpu-core-deps-emscripten-v27.0.0 wgpu-core-deps-wasm-v27.0.0 wgpu-core-deps-windows-linux-android-v27.0.0 wgpu-core-v27.0.0 wgpu-hal-v27.0.0 wgpu-info-v27.0.0 wgpu-types-v27.0.0 wgpu-v27.0.0 2025-10-01 19:36:18 -04:00
renovate[bot]
9380b87755
chore(deps): update cargo.lock (#8229)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2025-10-01 22:42:49 +00:00
Andreas Reich
333f811e9c
Rework wgpu::PollType to only two enum variants (#8285) 2025-10-01 18:08:07 -04:00
Jim Blandy
43eccd28f8
[naga] Remove naga::path_like. Use String instead. (#8284)
Delete the `naga::path_like` module, and simply using `String` and
`str` instead.

Nothing in Naga uses `Path` or `PathBuf` methods; indeed, Naga only
converts these values back and forth from string-like types with
`to_string_lossy` and `into`, such that using string-like, rather than
path-like, types actually simplifies the code.

This also avoids dead code warnings starting in Rust 1.89 that would
otherwise require distracting `#[cfg_attr]` conditionals.
2025-10-01 18:08:18 +02:00
Andy Leiserson
5b194ec510
[deno] Remove kludge for type properties (#8262) 2025-10-01 11:23:46 -04:00
renovate[bot]
a2547f8211
chore(deps): update dependency macos to v15 (#8278)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-01 10:59:09 -04:00
Erich Gubler
5146b3f8ae fix(namer): normalize ":<>," characters to a snake case separator 2025-10-01 08:50:37 -04:00
Erich Gubler
90702156af fix(namer): escape, rather than strip, non-ASCII ident. characters
Escape non-ASCII identifier characters with `write!(…, "u{:04x}", …)`,
surrounding with `_` as appropriate. This solves (1) a debugging issue
where stripped characters would otherwise be invisible, and (2) failure
to re-validate that stripped identifiers didn't start with an ASCII
digit.

I've confirmed that this fixes [bug
1978197](https://bugzilla.mozilla.org/show_bug.cgi?id=1978197) on the
Firefox side.
2025-10-01 08:50:37 -04:00
Andreas Reich
00ea850d79
Allow timeouting on poll (#8282) 2025-10-01 07:19:24 +00:00
Erich Gubler
06fc6f7345
feat(wgsl): recognize enable primitive-index; (#8237) 2025-09-30 22:02:10 +00:00
Marijn Suijten
d0bcb7e62d
CI: Disallow all warnings in cargo deny and prune unmatched skips (#8283)
The warnings right now all entail `unmatched-skip` /
`unmatched-skip-root` that have (likely) gotten stale since various
automated Renovate bumps where `Cargo.lock` changes don't require the
corresponding unmatched duplicate to be removed from `.deny.toml` again.

An exception has been made for `unmatched-organization` since we don't
always have a `git` dependency on a fork in `gfx-rs`, resulting in
a warning about that orga being in `sources.allow-org.github`.
2025-09-30 17:45:14 -04:00
Nils Hasenbanck
8c4aebc0c1
(Naga) Implement OpImageGather and OpImageDrefGather when ingesting SPIR-V (#8280) 2025-09-29 13:15:32 -04:00
Marijn Suijten
ea80c7dbc3
hal/vulkan: Accurately map all formats except fp16 to use the non-linear sRGB color space (#8226) 2025-09-29 11:50:10 -04:00
Nils Hasenbanck
8cb94db802
(Naga) Add support for Storage Image Multisample when ingesting SPIR-V (#8270) 2025-09-29 11:45:39 -04:00
Andy Leiserson
a01ffb7967
Fix unused warning in a specific feature config (#8271) 2025-09-29 11:44:05 -04:00
renovate[bot]
bc43a23e04
chore(deps): update cts digest to 5e7bd6e (#8275)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 11:43:27 -04:00
renovate[bot]
9c92a907e1
chore(deps): update crate-ci/typos action to v1.36.3 (#8276)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 11:43:13 -04:00
Vecvec
f1c876c875
Create a seperate event for each fence wait. (#8273)
* create an event per fence wait

* Use seperate event for each `wait_for_present_queue_idle` call.

* changelog
2025-09-29 11:38:33 -04:00
Andy Leiserson
61e5124eb9
[deno] Return undefined instead of null from WebGPU APIs (#8266)
See denoland/deno#29603
2025-09-26 20:10:09 -04:00
Erich Gubler
2b71b1f99d feat(deno): accept GPUTexture as GPUBindingResource 2025-09-26 17:51:35 -04:00
Erich Gubler
375095f789 feat(deno): accept GPUBuffer as GPUBindingResource 2025-09-26 17:51:35 -04:00
Teodor Tanasoaia
ce96254f4f
[msl] fix vertex pulling with a stride of 0 (#8265) 2025-09-26 13:37:37 -04:00
Teodor Tanasoaia
3375284f16
[D3D12] fix setting vertex buffer array stride if 0 (#8260) 2025-09-26 11:45:37 +00:00
Erich Gubler
cac1bf998c test(cts): add …,vertex_state,correctness:array_stride_zero:*, expect fail on macOS 2025-09-25 17:56:12 -04:00
Erich Gubler
83a0722eb6 test(cts): allow comma-separated backend list in fails-if(…) 2025-09-25 17:56:12 -04:00
Erich Gubler
5cbab61109 refactor(xtask/cts): move TEST_LINE_REGEX to single site of use 2025-09-25 17:56:12 -04:00
Erich Gubler
5e6c151f9f chore: remove advisories.ignore entry for RUSTSEC-2025-0056 2025-09-25 16:35:05 -04:00
Kenta Moriuchi
67f7a4ea3b [deno] add illegal constructor errors
(cherry-picked from denoland/deno#30500)
2025-09-25 16:35:05 -04:00
Andy Leiserson
492fb59648 Update to deno 2.4.5 2025-09-25 16:35:05 -04:00