Commit Graph
10480 Commits
Author SHA1 Message Date
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
Erich Gubler cc1a10f24a fix(msl-out): print resolved binding before array length
This only really applies to `[[clip_distances]]` right now, but Teo and
I are pretty sure this is the right order for other attributes we might
add for array types, too.
2026-03-20 10:58:29 -06:00
ecoricemon bb73dd843c fix(naga): Add validation for some math builtins in const-eval (#9249)
Added validation on builtin math functions `acosh`, `length`,
`normalize`, and `pow` during const evaluation.
2026-03-20 09:47:41 -07:00
Erich Gubler 0ca8ba04ac test(cts): add coverage for clip-distances feature 2026-03-19 18:40:46 -06:00
Erich Gubler 3e0e3591b5 fix(core): cover clip_distances bindings in max_inter_stage_shader_variables limit check 2026-03-19 18:40:46 -06:00
Erich Gubler c4169089e9 refactor(core): duplicate naga::BuiltIn to wgpu_core
Shortly, we're going to add our own functionality to it.
2026-03-19 18:40:46 -06:00
Erich Gubler 105a8a2454 refactor(core): import naga::Builtin 2026-03-19 18:40:46 -06:00
Inner Daemons b910720048 Add render_with_compute example (#9211) 2026-03-20 00:13:12 +00:00
Erich Gubler b7de7886b4 refactor: use plural "clip distances" for cross-platform layers (#9267) 2026-03-19 23:19:33 +00:00
Connor Fitzgerald 94ee0de5dc Improve release steps (#9263) 2026-03-19 18:57:17 -04:00
Erich Gubler d29383b814 fix(core): implement value comparison for Limits::max_inter_stage_shader_variables (#9264) 2026-03-19 21:29:23 +00:00
Connor Fitzgerald 06e2c7d24a Release v29 (#9260) v29.0.0 2026-03-18 20:23:53 -04:00
Andreas ReichandConnor Fitzgerald e4dae053c0 Change get_current_texture output to a unified enum (#9257)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-03-18 22:12:58 +00:00
Andy LeisersonandConnor Fitzgerald 41e85e7e2e docs(CHANGELOG): Minor cleanup (#9258)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-03-18 21:35:37 +00:00
Erich Gubler 805c372733 refactor(core): Interface::check_stage: use Iterator::zip for dimension checks (#9203) 2026-03-18 13:55:45 -07:00
Connor Fitzgerald 2810e95489 Update to winit 0.30 (#9089) 2026-03-18 20:34:12 +01:00
Andy Leiserson 9a3bba6962 feat(tracing): Trace failed create_*_pipeline calls (#9209) 2026-03-18 19:17:13 +01:00
Erich Gubler e6854ecf38 fix(core): panic on overflow for set_immediate's params. not coercing to usize 2026-03-18 12:16:00 -06:00
Erich Gubler 854ed79fd4 fix(core)!: validate set_immediate's values_offset param. 2026-03-18 12:16:00 -06:00
Erich Gubler f165d206ef fix(core)!: validate set_immediate's size_bytes param. 2026-03-18 12:16:00 -06:00
Erich Gubler 2a3dd23b03 fix(core)!: properly handle end offset overrun for immediate data 2026-03-18 12:16:00 -06:00
Andy Leiserson d5c0b137e0 test: Annotate one more KosmicKrisp failure (#9256)
Tracked in #9187
2026-03-18 11:13:25 -06:00
Andy Leiserson 04cce5ace7 feat(types): Add conversions to/from feature name strings (#9163) 2026-03-18 09:59:45 -07:00
Andy Leiserson 0e2650781c fix: dual-source blending validation
- Validate `@blend_src` structs in type validation. The spec requires
  validating any struct with `@blend_src` attributes, whether or not
  it is used by an entry point.
- Remove `@blend_src`-related interface validation that is
  redundant with the type validation.
- Dual-source blending requires that there be a single color
  attachment.
2026-03-18 09:52:01 -07:00