Commit Graph
10350 Commits
Author SHA1 Message Date
John Tur 74baec71b4 Support SSBOs and compute shaders when provided through GL extensions (#9169) 2026-03-07 21:17:12 -05:00
Erich Gubler 0ab6edd6a3 docs(CHANGELOG): add PR link for #8943 entry 2026-03-05 20:14:11 -05:00
Erich Gubler 3133f0e5e1 chore: run prettier on CHANGELOG 2026-03-05 20:14:11 -05:00
Erich Gubler 6b81bddc5c chore: forward-port CHANGELOG entries from v28.0.1 2026-03-05 20:14:11 -05:00
Erich Gubler 477dcb8918 chore: restore correctness commentary removed in #9074 (#9165) 2026-03-05 20:13:48 -05:00
Andy Leiserson 14ea13f11f fix(naga): Reject matrix negation in WGSL (#9157)
* fix(naga): Reject matrix negation

* Polyfill matrix negation for GLSL
2026-03-05 18:12:37 -05:00
Andy Leiserson 7f13acbf82 test(cts): List updates (#9160) 2026-03-04 15:35:24 -08:00
Andy Leiserson 0f6fd0b207 refactor(naga): Consolidate logic for checking enable extensions (#9107) 2026-03-04 18:25:46 -05:00
Andy Leiserson 7a17f66aa5 Tweak some limit reporting (#9118)
* Dummy implementation of max_storage_{buffers,textures}_in_*_stage limits

* hal(vulkan, dx12): Clamp per-stage binding limits at max_bindings_per_bind_group - 1

* Update CHANGELOG

* Allocate per-stage limits out of max_bindings_per_bind_group

* Fix typo and adjust hal's `log` dependency
2026-03-04 18:39:47 +01:00
Andy Leiserson d152e7369b Reduce binary bloat from error vtables (#9149) 2026-03-04 08:52:24 -08:00
ecoricemon 966d5d8e8c fix(naga): Validate invalid binary operations (#9126)
* fix(naga): Validate invalid binary operations

Changes
1. Incompatible Comparison: Added validation to prevent comparisons between different scalar types, such as 42i == 42u.
2. Compose-Scalar Operations: Added checks for unsupported binary operations between compose types and scalars, such as mat2x2f(...) + 1.0f.

CTS change
* webgpu:shader,validation,expression,matrix,*
 - Pass ratio: 1570/1881 (83.47%) -> 1678/1881 (89.21%)
* webgpu:shader,validation,expression,binary,*
 - Pass ratio: 4635/4992 (92.85%) -> 4786/4992 (95.87%)

* refactor: Move bin operand check out of match arms
2026-03-03 18:09:17 +01:00
ecoricemon 0d166c51a8 fix(naga): Allow a trailing comma in WGSL attributes (#9127)
* fix(naga): Allow trailing comma in WGSL attributes

Allow trailing comma token in WGSL attributes such as '@location(1,)'

CTS change
* webgpu:shader,validation,shader_io,*
 - Pass ratio: 2369/2891 (81.94%) -> 2380/2891 (82.32%)

* Update CTS list related to #8892
2026-03-03 18:06:06 +01:00
ecoricemon b6c605603f fix(naga): Validate presence of pipeline constants (#9133)
* fix(naga): validate presence of pipeline constants

Cause an error if a pipeline constant identifier doesn't exist in the shader

CTS change
* webgpu:api,validation,compute_pipeline:overrides,identifier:* : 12/26 (46.15%) -> 26/26 (100%)

* fix: Sort test.lst
2026-03-03 15:25:26 +01:00
Brendon Daugherty 3dc03bc23f fix(naga): Use wrapping arithmetic for dot on concrete ints (#9142) 2026-03-03 15:06:18 +01: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
Andy Leiserson da1d8c62a3 Avoid excessive ArrayVec monomorphization (#9122) 2026-03-03 14:41:09 +01:00
renovate[bot] c70d4ed332 chore(deps): update cts digest to cdeef99 (#9136)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-02 10:33:55 -05:00
renovate[bot] 03b397679c chore(deps): update crate-ci/typos action to v1.44.0 (#9137)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-02 10:33:44 -05:00
renovate[bot] 6b471ff0b6 chore(deps): update actions/upload-artifact action to v7 (#9138)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-02 10:33:32 -05:00
renovate[bot] 82b51db404 chore(deps): update cargo.lock (#9139)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-02 10:33:20 -05: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
7caf9fabc3 [spv-in] Improve detection of ImageClass (#8758)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2026-03-01 11:37:26 +00: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
Imbris 6d3a421c3c Document OpenGL support for timestamp queries (#9112) 2026-02-25 07:48:36 -05: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 b42b565b20 fix(build): Downgrade from yanked wasm-bindgen, web-sys, js-sys (#9104) 2026-02-24 14:39:22 -05: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
renovate[bot] 2975215f04 chore(deps): update cargo.lock (#9098)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-23 19:44:32 +00:00
Andy Leiserson 73624c9892 chore(deno): Implement is_fallback_adapter and validate feature level strings (#9043) 2026-02-23 11:10:43 -08:00
renovate[bot] 50aa1d623f chore(deps): update cts digest to b25f416 (#9095)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-23 07:37:44 -07:00
renovate[bot] 664c229fc9 chore(deps): update crate-ci/typos action to v1.43.5 (#9096)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-23 07:37:00 -07:00
Inner Daemons fdd903e6e4 Add supported caps info to naga backends (#9068)
* Initial commit

* 3/5 done I think

* Updated naga bin to use new caps

* Made clippy shut up

* Tried to fix dota2 validation error

* HLSL list made, also formatted Cargo.toml

* Made stuff work with snapshots

* Added changelog and GLSL list

* Updated message
2026-02-23 06:44:20 -07:00
Luo Zhihao 6432094c9e GLES: Set DownlevelFlags::CUBE_ARRAY_TEXTURES correctly (#9088) 2026-02-22 10:01:57 +01:00
Erich Gubler 7705c84485 fix(d12): fix startup crash for shader models 6.8, 6.9 (#9083) 2026-02-21 04:37:22 +00: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 495c8db0e8 test(player): don't ignore WriteBuffer ops.' size when queued 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
Vecvec 0bae2959fe Use all ray tracing pipeline builtins (#8998) 2026-02-19 01:56:00 -05:00
Inner Daemons c7f3db8bf1 Remove dispatch2 dependency (#9048) 2026-02-18 16:55:20 -08:00
Erich Gubler 3f60e75976 chore: update min. req. for serde 1.0.219 -> 1.0.225 (#9076) 2026-02-18 14:55:47 -05:00
Andy LeisersonandJim Blandy c4365b9818 fix(naga): Improve validation of non-constructible types (#8873)
* fix(naga): Improve validation of non-constructible types

Fixes #4720
Fixes the test cases in #7393, but not the issue itself

* Zero-constructing texture_2d is no longer caught by front end.

* Define `TypeInner::is_constructible`; use it in `front::wgsl`.

Add a new method `TypeInner::is_constructible`, that determines
whether WGSL considers a type [constructible]. Use this to generate
errors in the WGSL front end. Assert in validation that it matches the
judgment of `Validator::validate_type`.

[constructible]: https://gpuweb.github.io/gpuweb/wgsl/#constructible-types

---------

Co-authored-by: Jim Blandy <jimb@red-bean.com>
2026-02-18 11:08:53 -08: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