Andy Leiserson
07a7dd4454
refactor(core): Eliminate buffer mapping logic in Global ( #9444 )
2026-04-21 16:50:55 +02:00
Andy Leiserson
61e76ee746
fix(core): Use more checked arithmetic, part 2b ( #9425 )
2026-04-16 14:27:01 +02:00
Teodor Tanasoaia
cc44c1f616
[d3d12] always expose Features::FLOAT32_BLENDABLE ( #9431 )
2026-04-15 11:46:36 -04:00
teoxoy
c9c7359f5b
deduplicate vertex buffer validation in is_ready
2026-04-14 17:20:15 -07:00
teoxoy
a1b646243d
converge on a single VertexState impl for both render passes and
...
render bundles
- render passes now defer setting vertex buffers to the start of a draw
command (same as bundles)
- render bundles now cache vertex/instance limit calculations when
setting the pipeline or when setting a vertex buffer (same as passes)
2026-04-14 17:20:15 -07:00
teoxoy
a9a641c82a
remove PipelineState from bundle
2026-04-14 17:20:15 -07:00
teoxoy
4bbed4074c
add max_bind_groups_plus_vertex_buffers limit
2026-04-14 17:20:15 -07:00
teoxoy
2060683c29
make vertex buffer slots optional
2026-04-14 17:20:15 -07:00
atlas
20f5c7430e
fix(core): use wait_for_idle instead of timeout loop to wait for present in Queue drop
2026-04-14 10:51:03 +02:00
atlas
4c61d61361
fix(core): Keep surface texture alive through present preparation
2026-04-14 10:51:03 +02:00
atlas
12ab856f6c
feat(core): Move present from Surface to Queue
2026-04-14 10:51:03 +02:00
atlas
6314157c92
fix(core): Add NothingToPresent error for present/discard without acquired texture
2026-04-14 10:51:03 +02:00
atlas
c662f2a595
refactor(core): Factor out submit_pending_writes from Queue::submit
2026-04-14 10:51:03 +02:00
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 Daemons and Connor 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
TornaxO7 and Andreas 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 Daemons and Andreas 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 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