Commit Graph
10503 Commits
Author SHA1 Message Date
TornaxO7 514cff91db refactor: export TextureChannel (#9349)
* refactor: export `TextureChannel`

* chore(CHANGELOG): add entry for `wgpu::TextureChannel`

* format: apply `cargo fmt`
2026-03-31 13:09:51 -04:00
Andy Leiserson e14050d7db fix(core): Fix resource usage for R/O depth w/o TEXTURE_BINDING (#9346)
* fix(core): Fix resource usage for R/O depth w/o TEXTURE_BINDING

Fixes #9343

* Update test and waive failure

Related to #5231

* changelog
2026-03-31 17:02:11 +02:00
renovate[bot]andErich Gubler be1a7114ed chore(deps): update cargo.lock (#9336)
Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
2026-03-30 20:30:44 +00:00
Teodor Tanasoaia 3909348d0d [d3d12] prefix enum variants with V instead of _ (#9337) 2026-03-30 18:03:40 +00:00
Teodor Tanasoaia b332c00043 [wgpu-core] set exclusive pipeline for empty BGLs returned by .get_bind_group_layout() (#9338) 2026-03-30 13:47:17 -04:00
renovate[bot] bfe5f5690e chore(deps): update codecov/codecov-action action to v6 (#9335)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-30 12:29:46 -04:00
renovate[bot] 4eb6c34c20 chore(deps): update rust crate ctor to 0.8 (#9334)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-30 12:28:18 -04:00
Andy Leiserson 59c0c54029 Fix minor issues with @size attribute (#9322)
* test(cts): List updates

* fix(naga): Disallow @size on dynamically-sized arrays

* fix(naga): Increase MAX_TYPE_SIZE to i32::MAX
2026-03-30 16:56:09 +02:00
Mohamed Taha GUELZIM 55093bf2d1 fix(wgpu-hal/vulkan): only request shaderDrawParameters when needed (#9331)
Backport of the fix to v29.0.1 for use via [patch.crates-io].

Fixes #9293.
2026-03-30 15:52:33 +02:00
Kristoffer Søholm f5bc1ffb06 Fix wrong binding array sampler limit in dx12 (#9330) 2026-03-29 16:36:10 -04:00
John Tur 5ccf829118 Add XCB display handle support to EGL backend 2026-03-28 12:59:19 +01:00
Kevin Reid ede73935b3 Make more WriteOnly methods const.
In particular, conversions to and from pointers and references are now const.
This allows constructing `WriteOnly::from_mut(&mut [])` in const eval, which
may be useful for applications wishing to have constant empty values.

I can’t think of a reason to actually write through a `WriteOnly` in const,
but we might as well allow the amount of it we can, too.
2026-03-28 12:29:09 +01:00
Andy Leiserson da19f17121 fix(core): Add validation in create_render_bundle_encoder (#9289) 2026-03-27 14:33:10 +01:00
Andrew Wason 5bc99d51b7 Add support for RawWindowHandle::Drm/RawDisplayHandle::Drm to unix Vulkan (#9182) 2026-03-26 18:15:01 -04:00
Erich Gubler ae87ffe280 docs(CHANGELOG): sync 29.0.1 entries (#9315) 2026-03-26 15:33:49 -04:00
Erich Gubler fd2fa777b2 fix(core): create_bind_group: sort dynamic_binding_info (#9308)
`create_bind_group` populates the `BindGroup::dynamic_binding_info`
field in the order the user specified. This later gets consumed by
validation in passes and bundles `BindGroup::validate_dynamic_bindings`,
in which `dynamic_binding_info` is assumed to be sorted in binding
order. Eek! We're validating the wrong dynamic binding bounds!

Fix this by sorting `dynamic_binding_info` before it gets put into
a `BindGroup`. Document the field with the invariant that it _must_ be
sorted according to binding index order.
2026-03-26 18:52:10 +00:00
Ali 89e86c5f9c fix(cts xtask): Parse Apple git version (#9314)
Fixes #9313
2026-03-26 17:16:42 +00:00
Ali a071a4d5aa Fixes #9283 : firstLeadingBit returns signed semantics result instead… (#9299)
* Fixes #9283 : firstLeadingBit returns signed semantics result instead of unsigned for u32 input 0xFFFFFFFF on Metal backend

* updates snapshots

* added  to passing tests
2026-03-26 14:46:43 +01:00
cui a58f51a256 fix(naga): report offending index in IndexOutOfBounds for AccessIndex (#9312) 2026-03-26 11:34:21 +01:00
cui ce433776b5 fix(types): remove duplicate max_texture_dimension_1d in with_limits! (#9311) 2026-03-26 11:32:04 +01:00
Erich Gubler c04119adf1 test(ci): enforce fmt. of *.{md,js,html,yml} with prettier 3.8.1
This actually may enforce the format of other files than these, but we
don't use them, so far as I'm aware. If we want to opt out of other
formats later, that's what `.prettierignore` is for.
2026-03-25 12:46:54 -06:00
Erich Gubler da87026797 style: run prettier --write . 2026-03-25 12:46:54 -06:00
Erich Gubler 6bf3c15b7a chore: add config. for prettier 2026-03-25 12:46:54 -06:00
Erich Gubler d909e7d7e5 chore: ignore deno_webgpu's JS files 2026-03-25 12:46:54 -06:00
Andy Leiserson ae41c3841d test(cts): List updates (#9305) 2026-03-25 18:30:43 +00:00
ecoricemon 96675e5215 fix(naga): Reject direct access to atomic variables (#9262)
* fix(naga): Reject direct access to atomic variables

* resolve CHANGELOG conflict

* chore: Update CTS list
2026-03-25 18:23:34 +01:00
Erich Gubler 05cac6d190 docs(CHANGELOG): fix up links in unreleased entries (#9303) 2026-03-25 17:10:15 +00:00
Erich Gubler f08572729c diag(core): parenthesize "s" in TooMany{MipLevels,ArrayLayers} msg. 2026-03-25 13:06:23 -04:00
Erich Gubler 99ffaea4cd fix(core): don't crash when end bound calc. of TooMany{MipLevels,ArrayLayers} overflows 2026-03-25 13:06:23 -04:00
Erich Gubler 591ad3ddfc diag(core): add backticks for code-like things in TooMany{MipLevels,ArrayLayers} 2026-03-25 13:06:23 -04:00
Umaĵo 83923e0e29 fix(gles): texture height initialized incorrectly in create_texture (#9302) 2026-03-25 15:48:15 +00:00
RobandJim Blandy 73600f11d7 Add no_std support for the naga/wgsl-in feature (#9055)
* add no_std support for naga/wgsl-in

* simplify emit_to_string_with_path signature to use &str instead of std::path::Path

* inline hexf-parse

* update Cargo.lock and .deny.toml

* Do provide full path in snapshot error messages.

---------

Co-authored-by: Jim Blandy <jimb@red-bean.com>
2026-03-25 08:12:33 -07:00
Andy Leiserson 9c5adb73a7 fix(types): Check that with_limits! is exhaustive (#9294) 2026-03-24 20:54:40 +00:00
TornaxO7 098aaae40a Extend texture tests with exhaust (#9172) 2026-03-24 13:52:54 -06:00
Inner Daemons a53ffffe38 Mesh shader HLSL writer (#8752) 2026-03-24 15:42:38 -04:00
Kevin Reid 1148bac37c Convert comments on lint attributes to reasons. (#9292) 2026-03-24 18:58:52 +00:00
Andy Leiserson 8ddbd2d236 fix(naga): Disallow derivatives for f16 (#9154) 2026-03-24 17:52:47 +00:00
Erich Gubler 6ebd5bfd4a style: run prettier on examples/README.md (#9269) 2026-03-24 10:25:43 -07:00
Andy Leiserson 0226d561c0 test: Limit bucketing tests 2026-03-23 18:25:15 -07:00
Andy LeisersonandTeodor Tanasoaia 55b45559a7 feat(core): Limit bucketing
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com>
2026-03-23 18:25:15 -07:00
Andy Leiserson f9b4cbf365 refactor(tests): Add NoopBackendOptions::enabled() constructor 2026-03-23 18:25:15 -07:00
ecoricemon d199493486 fix(naga): Raise an error on division by zero (#9276)
Add validation about division by zero in valiator.  Plus, fix div/rem on i32 in
const-eval.
Relevant spec <https://gpuweb.github.io/gpuweb/wgsl/#arithmetic-expr> says
"If e1 is most negative value in T, and e2 is -1: ..." which means -MIN / -1 is
an error. This is exercised by CTS.
2026-03-23 21:18:54 +01:00
ecoricemon 97e235fde8 fix(naga): Fix const evaluation on bool (#9275) 2026-03-23 21:13:11 +01:00
Charlie Tonneslan 5574c21126 Fix typo: dependant -> dependent in framework.rs comment (#9288) 2026-03-23 13:55:18 -04:00
Andy Leiserson f76801d8c1 fix(metal): Check respondsToSelector before feature detection calls (#9284)
These methods are not implemented by `CaptureMTLDevice`. The actual
calls succeed, because the exception is caught and handled by a
fallback mechanism, but the valid-method checks by objc2 in debug
builds are not aware of the fallback and panic.

Fixes #9282
2026-03-23 10:38:33 -07:00
renovate[bot] 4e4708423c chore(deps): update cargo.lock (#9286)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-23 16:47:35 +00:00
renovate[bot] c9e475d8f4 chore(deps): update cts digest to 1497494 (#9285)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-23 12:11:15 -04:00
Timo Kösters df0116137f Fix typo (#9279) 2026-03-23 00:46:17 -04:00
Andy Leiserson 81eca17db8 test(bench): Reset terminal color after report (#9272) 2026-03-20 18:12:04 +00:00
Erich Gubler 3c13b5e68c fix(metal): unconditionally enable CLIP_DISTANCES 2026-03-20 10:58:29 -06:00