Elabajaba
ed3fb9da19
fix debug assertion not covering both parts of the debug statement ( #9352 )
2026-05-01 22:18:31 -04:00
Kristoffer Søholm
bca70e5afb
Fix validation for bindings with different sizes ( #9341 )
2026-05-01 14:04:29 -04:00
Kristoffer Søholm
5db7c60e5f
Fix bad debug_assert in dx12 indirect multi draw ( #9332 )
2026-05-01 14:04:29 -04:00
Erich Gubler
814eef1ca2
Don't crash in the Display implementation of CreateTextureViewError::TooMany{MipLevels,ArrayLayers} when their base and offset overflow. By @ErichDonGubler in #8808 .
2026-03-26 14:01:34 +01: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
Teodor Tanasoaia
e114d2f0a7
Add support for gaps in bind group layouts & update relevant validation ( #9034 )
...
* [wgpu-core] add support for optional BG & BGL entries
* [wgpu] allow gaps in bind group layouts
And allow unbinding in the web backend.
* adapt tests
* add changelog entry
* [wgpu] remove generic from `PipelineLayoutDescriptor`
2026-02-25 19:47:36 +01:00
Andy Leiserson
aad2a00f4d
fix(core): Blend factor must be one when blend op is min/max ( #9110 )
2026-02-25 18:22:54 +01:00
Andy Leiserson
b09a919c6a
DepthStencilState validation fixes ( #8840 )
...
* Make `depth_compare` and `depth_write_enabled` optional
These fields are optional in the WebGPU API. Having them optional in the
wgpu API as well keeps validation logic centralized in wgpu-core.
Fixes #8830
* Remove `DepthStencilStateIdl`
2026-02-25 14:59:48 +01:00
Andy Leiserson and Erich Gubler
3dfa9af0db
Enable FLOAT32_BLENDABLE on Metal, in Deno, and separate from filtering ( #9032 )
...
---------
Co-authored-by: Erich Gubler <erichdongubler@gmail.com >
2026-02-24 14:52:34 -08:00
Andy Leiserson
3676e0e247
fix(core): Validate occlusion query set type in begin_render_pass ( #9086 )
2026-02-23 14:38:46 -08:00
Dawid Sz.
ee46a45195
Add labels to indirect validation and timestamp normalization code ( #9094 )
2026-02-23 13:15:04 -07:00
Erich Gubler and Jim Blandy
f24e8a9273
fix(core)!: validate start + size for buffer ops in more places
...
Co-authored-by: Jim Blandy <jimb@red-bean.com >
2026-02-20 10:34:58 -05:00
Erich Gubler
cb10986178
chore(core): unmap_inner: add note explaining self.size usage in tracing
2026-02-20 10:34:58 -05:00
Erich Gubler
3e4f439b0b
refactor(core)!: ArcCommand::WriteBuffer: serialize offset and size instead of start..end
2026-02-20 10:34:58 -05:00
Erich Gubler
7d27b2f1e4
refactor(core)!: replace TransferError::BufferOverrun::end_offset with transfer's size
...
BREAKING CHANGE: Transfer operations are expressed in terms of a start
offset and a size. Trying to store anything else in errors and traces
yields extra complexity and loses clarity. Change
`TransferError::BufferOverrun` so that its `end_offset` field is no
more. Instead, add a `size` field that should only ever be saving off
fields already provided by user operations.
2026-02-20 10:34:58 -05:00
Inner Daemons
8f50bb9d98
Make passthrough shaders non-experimental ( #9054 )
...
* Refactored passthrough shaders
* Added a changelog entry
2026-02-18 12:29:50 -05:00
Alexander Meißner
05861da365
[hal metal] ray tracing acceleration structures ( #8071 )
...
* Fixes index_buffer label in ray_traced_triangle example.
* Fixes min_push_constant_size in ray_shadows example.
* Ensures there always is Some() buffer reference, even for get_acceleration_structure_build_sizes().
* Updates CHANGELOG.
* Adds feature detection.
* Adds Capabilities Limits.
* Adds necessary objc2-metal features in Cargo.toml
* Sets raw_tlas_instance_size.
* Sets ray_tracing_scratch_buffer_alignment.
* Adds conv::map_index_format().
* Adds conv::map_acceleration_structure_descriptor().
* Implements AccelerationStructure.
* Implements resource binding.
squash with "Implements resource binding."
* Adds CommandState::acceleration_structure_builder.
* Implements CommandEncoder::copy_acceleration_structure_to_acceleration_structure().
* Implements CommandEncoder::build_acceleration_structures().
* Implements CommandEncoder::place_acceleration_structure_barrier().
* Implements CommandEncoder::read_acceleration_structure_compact_size().
* Implements Device::get_acceleration_structure_build_sizes().
* Implements Device::get_acceleration_structure_device_address().
* Implements Device::create_acceleration_structure().
* Implements Device::destroy_acceleration_structure().
* Implements Device::tlas_instance_to_bytes().
* Adds CommandEncoder::set_acceleration_structure_dependencies().
* Review feedback
2026-02-19 06:21:11 +13:00
Erich Gubler
55a906767a
refactor: satisfy clippy::manual_is_multiple_of for transfer alignment checks ( #9072 )
2026-02-17 23:34:25 -05:00
Andy Leiserson
e59fb7d423
fix(core): Calculate total number of bindings correctly ( #8997 )
2026-02-12 14:29:56 +01:00
Inner Daemons
7609ed99e5
Add draw_id builtin ( #8883 )
2026-02-11 20:47:29 +00:00
Inner Daemons
702c4ef4da
[wgsl] gate primitive_index built-in behind its extension & [glsl-out] require extensions for gl_PrimitiveID if needed ( #8879 )
2026-02-10 12:40:41 +01:00