Commit Graph
2457 Commits
Author SHA1 Message Date
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
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 LeisersonandErich 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 GublerandJim 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
Connor Fitzgerald 04746e747e Implement 3 part MSRV policy (#8999) 2026-02-08 17:04:36 -05:00
Luo Zhihao c0f04c801c Validate strip_index_format equals index buffer format for indexed drawing with strip topology 2026-02-01 23:14:52 -08:00
Andy Leiserson 2c9e77a19d clippy: Adjust large-error-threshold and remove waivers (#8974) 2026-01-30 22:37:24 -05:00
Inner Daemons fab57513ec Add metallib passthrough (#8886) 2026-01-30 13:52:05 -05:00
Andy Leiserson 1af73121f4 fix(core): Read-write bindings are compatible with write-only shaders (#8951)
Fixes #8905
2026-01-30 09:44:22 -08:00
Andy Leiserson 735e8d2a40 Fix validation related to depth bias and frag_depth
* Depth bias is only supported with triangle topologies (fixes #6071)
* If the shader outputs `frag_depth`, the pipeline must have a depth
  attachment
2026-01-30 09:36:29 -08:00
Andy Leiserson b316204dff Allow shaders w/ dual-source blend I/O in non-DSB pipelines
Fixes #8592
2026-01-30 09:36:29 -08:00
Andy Leiserson 3bacd7bee5 refactor(core): Tweak dual-source blending validation 2026-01-30 09:36:29 -08:00
Andy Leiserson c6bf076d78 fix(naga): Reject unsupported enable extensions (#8913)
Previously we required that the enable extension be declared and that
the capability be present if the functionality was used, but allowed the
extension to be declared if the functionality was not used.
2026-01-30 10:08:04 -05:00
Vecvec 8a37e0f56a [wgsl in and IR] naga ray tracing pipelines (#8570) 2026-01-29 14:18:56 -05:00
Inner Daemons c82e37b683 Validate pipelines with passthrough shaders but no explicit layout passed (#8881) 2026-01-28 20:14:33 -05:00