Commit Graph
2496 Commits
Author SHA1 Message Date
Erich Gubler 10ce22b2ea refactor!: subvert-rename dispatch* to dispatchWorkGroups* (#9362) 2026-04-11 20:58:22 +02:00
teoxoy 8c40370eae [d3d12] lower max_vertex_attributes to 30
See https://github.com/gpuweb/gpuweb/pull/5604#discussion_r2967504832
2026-04-11 00:55:54 -04:00
Teodor Tanasoaia f7b650d55c [wgpu-core] fix potential crash when device is not supplied to validate_render_bundle_encoder_descriptor (#9407) 2026-04-10 19:46:34 +00:00
Andy Leiserson 2640d038e2 fix(core): Allow calling RenderBundleEncoder::new without a device (#9404) 2026-04-10 12:57:11 +02:00
atlv e6e5f5288c Bring immediate in line with webgpu spec (#9280) 2026-04-09 22:36:02 +00:00
Andy Leiserson acc5855e1f fix(core): Use more checked arithmetic, part 2 (#9363) 2026-04-09 15:21:20 -06:00
Jim Blandy bf8330c20b Make DRM support optional. (#9390) 2026-04-09 13:11:04 -07:00
Genna Wingert 2ac1faef05 feat(core): Add ComputePass::transition_resources (#9371) 2026-04-09 09:42:55 -04:00
Inner DaemonsandConnor Fitzgerald 8bc9fc1795 Add GLSL passthrough (#9064)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-04-08 22:03:34 -04:00
Ali 65a5c2b3bc fix Queue::writeBuffer : raise a validation error for out-of-bounds transfers on zero-size buffers (#9374) 2026-04-08 16:03:13 +00:00
TornaxO7andAndreas Reich 9557c6e371 fix(02_hello_window): drop texture if surface texture is suboptimal (#9384)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2026-04-08 17:27:38 +02:00
Inner DaemonsandAndreas Reich b5bd5aed7d Mesh shaders MSL writer (#8739)
* Single squashed commit

* Updated changelog

* Fixed stupid changelog thing

* If I have to do this one more fucking time I'm gonna lose it

* Removed some pub(super)'s

* Thing

---------

Co-authored-by: Andreas Reich <r_andreas2@web.de>
2026-04-07 17:26:22 +00:00
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 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
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]andConnor 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 EickerandConnor 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