Commit Graph
10064 Commits
Author SHA1 Message Date
Kevin Reid 592736efa0 Expand query set documentation.
This is intended to provide all the information necessary to make use of
occlusion and timestamp queries, without needing to read example code or
the WebGPU spec.
2025-12-22 21:01:26 -05:00
Kevin Reid 97ec4a0e40 Explain where Device::features() and Device::limits() come from.
This clarifies that they are under user control and do not necessarily
represent hard impossibilities.
2025-12-22 21:01:26 -05:00
Kevin Reid 70415d02c1 Replace docs.rs links in Features with link_to_wgpu_docs!. 2025-12-22 21:01:26 -05:00
Kevin Reid 022f041292 Markdown fixes. 2025-12-22 21:01:26 -05:00
SuchAFuriousDeath 490f1f4153 fix(core): set is_open only after begin_encoding succeeds (#8765) 2025-12-22 17:59:12 -05:00
renovate[bot] 615c801ac4 chore(deps): update actions/upload-artifact action to v6 (#8773)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-22 16:49:38 -05:00
Dzmitry Malyshau bff1f6d095 (Naga) Cooperative Matrix Support (#8251) 2025-12-22 13:14:57 -05:00
renovate[bot] 4f2246069c chore(deps): update cts digest to da73c1d (#8772) 2025-12-21 20:37:26 -08:00
Erich Gubler 56c654b08d style(info): remove trailing whitespace (again) (#8759) 2025-12-19 20:41:03 -05:00
Andy Leiserson b9324e9da9 [deno] Fix error reporting for async pipeline creation 2025-12-19 15:12:03 -08:00
Andy Leiserson 59dbd6b954 [deno] Remove error return from new_render_pipeline 2025-12-19 15:12:03 -08:00
Andy Leiserson 90e162c0e3 [deno] Add some WebIDL converters 2025-12-19 15:12:03 -08:00
Erich Gubler bdf7d9bb5d fix(core): s/COPY_SRC/COPY_DST/ for first transition in external texture init. (#8760) 2025-12-19 13:53:47 -08:00
Opstic 42582cdb1b Re-add support for memoryless storage on A7 (#8725) 2025-12-19 13:20:44 -05:00
Erich Gubler 01578c6234 Minor fixups for wgpu-info (#8718) 2025-12-18 20:46:37 -05:00
Connor Fitzgerald 3f02781bb5 update metal to 0.33 v28.0.0 2025-12-17 22:05:10 -05:00
Connor Fitzgerald e72a77c4a5 update release checklist 2025-12-17 22:05:10 -05:00
Connor Fitzgerald 68c74ff242 Update versions 2025-12-17 22:05:09 -05:00
Connor Fitzgerald 999dd28a88 Update changelog 2025-12-17 22:05:06 -05:00
Inner Daemons fa8afdf3e0 Fix mesh task workgroup limit on nvidia (#8754) 2025-12-17 19:59:02 -05:00
Andy Leiserson c5e460fea1 Fix regressions in logical operator handling in const exprs (#8721)
* Fix regressions in logical operator handling in const exprs

Fixes regressions introduced by #7339
Fixes #8711
2025-12-17 13:17:57 -08:00
Inner Daemons b74007fed3 Fix mesh shader validation (#8749) 2025-12-17 14:54:51 -05:00
49be67a5a6 Naga mesh shader WGSL writer (#8481)
Co-authored-by: Jim Blandy <jimb@red-bean.com>
Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
Co-authored-by: SupaMaggie70Incorporated <magnus.larsson.mn@gmail.com>
Co-authored-by: SupaMaggie70Incorporated <85136135+SupaMaggie70Incorporated@users.noreply.github.com>
Co-authored-by: Inner Daemons <85136135+inner-daemons@users.noreply.github.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2025-12-17 19:27:44 +00:00
Connor Fitzgerald daf69de67a Bump MSRV to 1.92 for real (#8723) 2025-12-17 17:12:23 +01:00
952d653835 New mesh shader limits (#8507)
* Initial commit

* Other initial changes

* Updated shader snapshots

* Added new HLSL limitation

* Moved error to global variable error

* Added docs to per_primitive

* Added a little bit more docs here and there in IR

* Adding validation to ensure that task shaders have a task payload

* Updated spec to reflect the change to payload variables

* Updated the mesh shading spec because it was goofy

* some doc tweaks

* Tried to clarify docs a little

* Tried to update spec

* Removed a warning

* Addressed comment about docs mistake

* Review in progress

- Extensive revisions to `docs/api-specs/mesh_shading.md`.

- Doc comments.

- Ensure `Module` stays at the bottom of `ir/mod.rs`.

- Avoid a clone.

- Rename some arguments to be more specific.

- Minor readability tweaks.

* mesh_shading.md: more tweaks

* Ran cargo fmt

* Small tweaks

* [naga] Move definition of `ShaderStage::compute_like` to `proc`.

Move the definition of `naga::ShaderStage::compute_like` from
`naga::ir` into `naga::proc`. We generally want ot keep methods out of
`naga::ir`, since the IR itself is complicated enough already.

* Replace TODO comment with followup issue.

* Update analyzer.rs

Co-authored-by: Jim Blandy <jimb@red-bean.com>

* Removed stuff in accordance with Jim's recommendation

* minor changes for readability

* Pull mesh shader output type validation out into its own function.

* doc fixes

* remove duplicated task payload validation

* Quick little changes

* Another quick fix

* Quick fix

* Removed unnecessary TODO statement

* A

* Tried to be more expressive

* Made functions only work in mesh shader entry points

* Various validation fix attempts

* Undid capabilities resize

* WGSL PR is up :)

* Update naga/src/ir/mod.rs

Co-authored-by: Erich Gubler <erichdongubler@gmail.com>

* Update naga/src/front/wgsl/error.rs

Co-authored-by: Erich Gubler <erichdongubler@gmail.com>

* Update naga/src/ir/mod.rs

Co-authored-by: Erich Gubler <erichdongubler@gmail.com>

* Other Erich suggestion

* Updated docs & validation for some builtins

* Added some docs & removed contentious "// TODO"

* Fixed bad validation, formatted mesh shader wgsl

* Rewrote the IR and parser significantly

* Improved validation slightly, remvoed obselete crap, fixed bug in compaction, made clippy happy

* Added changelog entry

* Made parser respect enable extension

* Updated mesh shader spec

* Cleaned up the mesh shader analyzer function

* Updated changelog

* Updated validation from spv-write

* Slight tweaks

* Added capabilitiy thing blah blah blah

* Fixed compaction & clean stuff up

* Fixed compaction and such pt 2

* Paved the way for primitive-index stuff

* Little bit of cleanup

* Added new features/capabilities for point primitives and added snapshots for stuff

* Updated spec to rename something

* Updated some limits stuff

* Made some improvements

* Fixed doctests & webgpu stuff

* Fixed experimental features stuff

* A little more scaffolding

* Added some initial validation

* Added per primitive validation

* Improved per primitive validation

* Added some more validation

* Fixed primitive index validation

* Updated the spec

* Updated comments on some limits

* Made some fixes

* Fixed new validation rule for task payload size

* Update wgpu-core/src/validation.rs

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>

* Update wgpu-core/src/validation.rs

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>

* A small tweak to mesh shader recommended minimums

* Addressed 2 comments

* A few more comments addressed with limits

* Addressed more comments

* Update wgpu-core/src/validation.rs

Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>

* Split up error

* Addressed another comment by changing workgroup size validation

* Final comment addressed

* Update wgpu-info/src/human.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update wgpu-core/src/validation.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update wgpu-info/src/human.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fixed compilation and added some new test functions

---------

Co-authored-by: SupaMaggie70Incorporated <85136135+SupaMaggie70Incorporated@users.noreply.github.com>
Co-authored-by: Jim Blandy <jimb@red-bean.com>
Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-17 05:13:27 +00:00
Vecvec f1b79b1c30 Correct alignment if a buffer is an acceleration structure scratch buffer (#8745) 2025-12-17 00:02:38 -05:00
703c7d274d Naga mesh shader SPIR-V writer (#8456)
Co-authored-by: Inner Daemons <magnus.larsson.mn@gmail.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2025-12-16 23:33:15 -05:00
Andy Leiserson 6dd69b0567 core: Reject zero-size bindings in createBindGroup (#8734) 2025-12-16 18:22:00 +00:00
Teodor Tanasoaia 5c76751104 [d3d12] add support for optional adapter telemetry (#8576) 2025-12-16 12:34:29 -05:00
teoxoy 61f08ed2d2 use Binder in RenderBundleEncoder.finish 2025-12-16 18:06:51 +01:00
teoxoy 54e47d7f97 move condition inside Binder::change_pipeline_layout 2025-12-16 18:06:51 +01:00
06wj e4cfcf4abd Add GLSL constant_id layout qualifier support and WGSL backend override output (#8589) 2025-12-16 13:30:16 +01:00
Connor Fitzgerald e52e8336b0 Bring immediate api in line with spec (#8724) 2025-12-16 13:13:09 +01:00
Connor Fitzgerald 5f5d88b96e Remove boids exception from MoltenVK
Seems either we or they fixed the bug.
2025-12-16 12:54:27 +01:00
Connor Fitzgerald ea792d30fe Properly detect timestamp query feature on vulkan 2025-12-16 12:54:27 +01:00
Connor Fitzgerald 621919ca84 Add missing features to wgpu dependency 2025-12-16 12:54:27 +01:00
Luo Zhihao bec772bdbd hal/vulkan: Fix multi draw indirect emulating and respect maxDrawIndirectCount (#8665) 2025-12-16 00:31:03 -05:00
5444e19e4f chore(deps): update rust crate flume to 0.12 (#8730)
Co-authored-by: cwfitzgerald <7861353+cwfitzgerald@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
2025-12-15 18:03:16 +00:00
Vecvec 7721a3e065 [spv-out] handle rayQueryTerminate correctly. (#8581) 2025-12-15 12:53:39 -05:00
Andy Leiserson 4a91c7fc6c Ensure the limit for storage binding size honors alignment (#8719) 2025-12-15 12:42:17 -05:00
renovate[bot] 6c73d46ae3 chore(deps): update jamesives/github-pages-deploy-action action to v4.7.6 (#8729)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-15 17:28:03 +00:00
renovate[bot] 515b8a7505 chore(deps): update cts digest to 4a2a538 (#8728)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-15 09:14:10 -08:00
Lucas Abel 81184f45b4 [metal] MTLDevice is thread-safe (#8168) 2025-12-15 17:03:31 +00:00
renovate[bot] 8a663a571f chore(deps): update cargo.lock (#8731)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-15 11:59:50 -05:00
Lucas Abel 17ebb2a656 [core] Queue::drop is acquiring the snatch guard as well (#8691) 2025-12-15 11:59:24 -05:00
Inner Daemons cc005da1e1 Fix metal feature detection (#8439) 2025-12-12 15:08:38 -05:00
David Duarte ea361fc114 hal/vulkan: Replace gpu-alloc by gpu-allocator (#8158) 2025-12-12 19:10:42 +00:00
Moritz Zielke 2a190372f7 fix(OpenGL): enable using VertexFormat::Unorm10_10_10_2 on gl (#8717) 2025-12-12 12:25:14 -05:00
Xiaopeng Li f743106258 get presents_with_transaction from render_layer (#8716) 2025-12-12 08:36:19 -05:00
Xiaopeng Li 0ac2da4b6b [metal] expose render_layer (#8707) 2025-12-12 01:43:22 +00:00