Kristoffer Søholm
41bb9cbd25
Fix validation for bindings with different sizes ( #9341 )
2026-04-02 18:01:28 -07:00
e46eda2e4f
Full per_vertex implementation ( #9219 )
...
* Some stuff worked on
* Works on MSL
* Ready for test 2
* Fix for a thing lol
* Fixed 2 errors
* Fixed DXC
* Add changelog
* Updated CI to hopefully pass on macOS
* Various fixes
* Some final fixes
* CHanged CI
* Update naga/src/front/wgsl/parse/directive/enable_extension.rs
Co-authored-by: atlv <email@atlasdostal.com >
* Thing
---------
Co-authored-by: atlv <email@atlasdostal.com >
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2026-04-02 05:33:42 +00:00
Elabajaba
e8afd9a906
fix debug assertion not covering both parts of the debug statement ( #9352 )
2026-04-01 19:56:14 -06:00
Andy Leiserson
11db97cf1b
fix(core): Use more checked arithmetic ( #9357 )
2026-04-01 15:23:21 -07:00
Dylan Blokhuis
438ed2a7ce
feat(core): support building custom geometry BLAS ( #9290 )
2026-04-01 20:55:22 +13:00
Kristoffer Søholm
fd04edc0ac
Fix bad debug_assert in dx12 indirect multi draw ( #9332 )
2026-03-31 13:46:25 -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
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
Andy Leiserson
da19f17121
fix(core): Add validation in create_render_bundle_encoder ( #9289 )
2026-03-27 14:33:10 +01: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
Erich Gubler
da87026797
style: run prettier --write .
2026-03-25 12:46:54 -06: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
Kevin Reid
1148bac37c
Convert comments on lint attributes to reasons. ( #9292 )
2026-03-24 18:58:52 +00:00
Andy Leiserson and Teodor 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
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
Erich Gubler
b7de7886b4
refactor: use plural "clip distances" for cross-platform layers ( #9267 )
2026-03-19 23:19:33 +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
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
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
renovate[bot] and Connor Fitzgerald
f778c388be
chore(deps): update dependencies ( #9240 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2026-03-16 17:12:12 +00:00
Niklas Eicker and Connor Fitzgerald
62c2f5da97
Move ordered usages to hals ( #8924 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2026-03-15 03:23:32 +00:00
atlv
c4c623fb45
wgpu-naga-bridge ( #9201 )
2026-03-13 11:09:12 -04:00
atlv
9ed77372b4
Add coherent and volatile memory decorations for storage buffers. ( #9168 )
2026-03-11 19:53:52 -04:00
Erich Gubler
c1f4d0c5db
style(core): keep device::resource module's content < 100 columns ( #9193 )
2026-03-11 13:36:49 -07:00
Erich Gubler
e5b0edea79
refactor: break StageError::InvalidWorkgroupSize diag. at 100 columns
2026-03-11 11:33:22 -06:00
Erich Gubler
d7d2ede9fb
diag!: use clearer field names and order for StageError::InvalidWorkgroupSize
2026-03-11 11:33:22 -06:00
Erich Gubler
46b77dd900
diag: don't add newline and space to StageError::InvalidWorkgroupSize
2026-03-11 11:33:22 -06:00
Erich Gubler
70b8343e06
refactor(core): rename Instance::name to _name ( #8957 )
2026-03-11 17:29:08 +00:00
Erich Gubler
405fedbb05
refactor: use Iterator::any for max_compute_workgroups_per_dimension check ( #9194 )
2026-03-11 11:39:05 -04:00
Dzmitry Malyshau
adc3534f1c
Add max_binding_array_acceleration_structure_elements_per_shader_stage limit
2026-03-11 08:18:38 -07:00
Dzmitry Malyshau
e39b3aec8e
Plumbing and a test for ACCELERATION_STRUCTURE_BINDING_ARRAY
2026-03-11 08:18:38 -07:00
Erich Gubler
43f48b43ee
refactor(core): Interface::check_stage consolidate total_invocations checks into invalid_total_invocations
2026-03-10 18:40:02 -06:00
Erich Gubler
5d77bb336f
perf(core): Interface::check_stage: just check total_invocations == 0
2026-03-10 18:40:02 -06:00
Erich Gubler
ac79412501
refactor(core): Interface::check_stage: use saturating_mul for total_invocations
2026-03-10 18:40:02 -06:00
Marijn Suijten
35db26b2c6
Make HasDisplayHandle optional in WindowHandle ( #8782 )
2026-03-10 11:36:12 -04:00
Genna Wingert
ce7dad3026
fix: Change type of max_*_buffer_binding_size to follow spec
2026-03-09 16:49:06 -06:00
Emil Ernerfeldt
12b9d4996b
macOS: Fix one-second delay when switching a wgpu app to the foreground ( #9141 )
2026-03-08 23:17:13 +01:00
Andy Leiserson
d152e7369b
Reduce binary bloat from error vtables ( #9149 )
2026-03-04 08:52:24 -08:00
Andy Leiserson
68b26a65f6
fix(deno): Report the correct type of error for an invalid writeMask ( #9144 )
2026-03-03 14:42:17 +01:00
Mendy Berger
f1e6b994aa
refactor: removed unused TextureViewDestroyError ( #9140 )
2026-03-02 10:32:45 -05:00
Inner Daemons
78cd771dfd
Fix present synchronization ( #9036 )
2026-03-01 14:38:45 -05:00
Mikołaj Radkowski
665cb34e32
Fix multi-planar texture copying ( #9069 )
2026-03-01 12:14:03 +01:00