Commit Graph
10326 Commits
Author SHA1 Message Date
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
renovate[bot] 2057612344 chore(deps): update rust crate toml to v1 2026-02-18 10:42:37 -05:00
Erich Gubler 550997d4d0 chore: update min. req. for indexmap 2.8.0 -> 2.11.4 2026-02-18 10:42:37 -05:00
Inner Daemons c0fbf119a7 Forbid unsafe code in naga (#9074) 2026-02-18 08:07:24 -07:00
Mendy Berger 7baace517b chore(deno_webgpu): Removed unnecessary vec (#9071) 2026-02-18 07:59:38 -07:00
renovate[bot] 910ef131ac chore(deps): update cargo.lock (#9062)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-18 01:36:30 -05:00
renovate[bot] 421bbfcc5d chore(deps): update rust crate glam to 0.32.0 (#9060)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-17 23:35:51 -05:00
Erich Gubler 55a906767a refactor: satisfy clippy::manual_is_multiple_of for transfer alignment checks (#9072) 2026-02-17 23:34:25 -05:00
Connor Fitzgerald 6c0f5eca6b Add TOC to CONTRIBUTING.md 2026-02-17 13:35:17 -05:00
Connor Fitzgerald 186992ddb6 Add LLM policy 2026-02-17 13:35:17 -05:00
Connor Fitzgerald 9adee8c9d5 Misc touchups to CONTRIBUTING file 2026-02-17 13:35:17 -05:00
renovate[bot] 1b4c22cf68 chore(deps): update cts digest to c299b04 (#9059)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-17 09:55:47 -07:00
Connor Fitzgerald 26c5618d83 Fix CRLF in dxgi.rs (#9067) 2026-02-17 09:22:14 -05:00
Vecvec 157cf36844 [wgsl-out] Ray tracing pipelines (#8970)
* wgsl-out rt pipelines

* Format.

* Enable the ray tracing pipeline extension.

* Add more checks for ray tracing pipelines.

* Changelog.

* Remove ir target.
2026-02-15 15:42:08 -05:00
Inner Daemons dc29f72675 Fix metallib tests (#9049)
* Single commit fix

* Moved up the guards
2026-02-13 21:05:36 -05:00
Inner Daemons 43a88474f4 Fixed clippy lint in CI (#9050) 2026-02-13 16:21:31 -08:00
Inner Daemons 6bca1014b2 Various SPIR-V fixes for mesh shaders (#8756)
* Initial commit adding miscellaneous changes from msl-write and hlsl-write

* Same as previous commit

* Fixed divergence issue

* Removed some unnecessary barriers

* Zero init workgroup memory

* Added limits validation

* Added changelog

* Handled overflow, removed todo

* Lets see if this fixes llvmpipe

* Also this commit fixes llvmpipe maybe

* Unfortunate but not too unexpected at this point

* Updated feature to say to use ShaderRuntimeChecks::unchecked()

* Updated snapshots and took some changes from the hlsl writer

* Snapshots

* 2 quick tweaks

* Updated framework with suggestions by Connor in #8752

* Moved the task runtime limits into naga::back

* Fixed soem stuff

* Fixed checks: >= into >

* Cant believe I forgot this

* Removed code using u64 to check stuff

* Removed thing with limiting it to 2<<21

* Some more work

* Fixed compiles

* Added new field to spv options

* Updated some stuff to pass around the task runtime limits in more ways

* New PR started

* Did another quick fix

* Another quick fix

* Added changelog entry

* Added some explanation docs

* Fixed a warning

* Fixed shader

* Fixed some things & added docs

* Reverted dxc thing

* Fixed thing

* Refactored to TaskDispatchLimits

* Fixed compile error
2026-02-12 14:47:42 -05:00
Connor Fitzgerald c70b53c123 Remove trace from hello_triangle (#9047) 2026-02-12 13:54:29 -05:00
Connor Fitzgeraldandrenovate[bot] 02e905061b Update Cargo.lock (#9044)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-12 16:31:38 +00:00
Andy Leiserson e59fb7d423 fix(core): Calculate total number of bindings correctly (#8997) 2026-02-12 14:29:56 +01:00
Tom Schuster c12ce038cd WebGPU: Skip copy in Queue::write_texture (#9038) 2026-02-11 22:01:34 -05:00
RobandConnor Fitzgerald 95392decd0 Add no_std support for the wgpu/web feature (#8981)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-02-11 23:39:34 +00:00
Tom Schuster c11bf18a5c WebGPU: Implement begin_occlusion_query and end_occlusion_query (#9039) 2026-02-11 23:19:42 +00:00
Inner Daemons 6503562948 Add a DX12 backend option to force a certain shader model (#8984) 2026-02-11 18:14:30 -05:00
Inner Daemons ed12b74168 Changed wgpu to default to static dxc when the feature is enabled (#8882) 2026-02-11 22:41:45 +00:00