1446 Commits
Author SHA1 Message Date
Luo Zhihao 055f28a247 Fix Android crash by setting waitAll to true in vkWaitForFences (#8769) 2026-03-01 16:16:35 -05:00
Opstic 16a4d9000a Re-add support for memoryless storage on A7 (#8725) 2026-03-01 16:16:34 -05: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
Teodor Tanasoaia 5c76751104 [d3d12] add support for optional adapter telemetry (#8576) 2025-12-16 12:34:29 -05:00
Connor Fitzgerald e52e8336b0 Bring immediate api in line with spec (#8724) 2025-12-16 13:13:09 +01:00
Connor Fitzgerald ea792d30fe Properly detect timestamp query feature on vulkan 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
Andy Leiserson 4a91c7fc6c Ensure the limit for storage binding size honors alignment (#8719) 2025-12-15 12:42:17 -05:00
Lucas Abel 81184f45b4 [metal] MTLDevice is thread-safe (#8168) 2025-12-15 17:03:31 +00: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
Jim Blandy 39f6596588 [hal] Minor doc fixes for Vulkan texture memory changes. (#8703) 2025-12-10 17:04:58 -05:00
Andy Leiserson fc9912ed30 refactor(metal): Use descriptive names in update_bind_group_state (#8628) 2025-12-10 14:16:46 -05:00
Lucas Abel f558612470 [egl] bump the lock timeout from 1 to 6s (#8692) 2025-12-09 12:50:34 -05:00
Lucas Abel a32bbbca8c [metal] fix destroy_query_set counter tracking (#8693) 2025-12-09 12:37:07 -05:00
Connor Fitzgerald 20f5b835a7 Naga does not let storage buffers or compute happen on old GL versions 2025-12-08 12:26:45 +01:00
Connor Fitzgerald e3149bac9e LoadOp::DontCare (#8549) 2025-12-08 03:41:38 +00:00
Connor Fitzgerald a356cb2026 Update Repo MSRV to 1.91 (#8678) 2025-12-07 21:52:35 -05:00
Connor Fitzgerald 40b2d3041b [dx12] Fix detection of Int64 features (#8667) 2025-12-07 17:55:04 +01:00
Layl 21e6143ed0 Add MULTISAMPLE_ARRAY feature flag. (#8571) 2025-12-05 18:31:05 +01:00
Connor FitzgeraldandJMS55 9a41de4e96 Move subgroup size info to AdapterInfo (#8609)
Co-authored-by: JMS55 <47158642+JMS55@users.noreply.github.com>
2025-12-04 17:01:56 +00:00
s-ol 2a7e8700ad unify vk_hal::Texture::{block, external_memory} in enum TextureMemory (#8521) 2025-12-03 17:21:54 +01:00
Connor Fitzgerald 5895de82b5 Rename push constants to immediates (#8586) 2025-12-01 15:20:02 +01:00
Connor Fitzgerald f91d9f385b Fix vscode issues on wasm32 (#8584) 2025-11-27 10:56:43 +01:00
Connor Fitzgerald dc01e6e213 Normalize logging levels (#8579) 2025-11-27 10:55:02 +01:00
Martin Svanberg f114138e52 Support STORAGE_RESOURCE_BINDING_ARRAY on Metal (#8464) 2025-11-26 20:18:10 -05:00
Eric Engestrom 803e48ca3b hal/vulkan: fix invalid request of VK_EXT_physical_device_drm as an instance extension (#8554) 2025-11-26 17:52:14 -05:00
Alix Bott 43c5d27219 fix double window class registration (#8548) 2025-11-26 17:51:41 -05:00
Jean Francois Pambrun 0a99be6f05 Disable DX on gnu target. (#8430) 2025-11-19 13:04:49 -05:00
Vecvec 7ba1a0e41c Add enable extensions for ray queries and ray query vertex returns. (#8545) 2025-11-18 15:56:47 -05:00
Andreas Reich 7572bf2264 Remove unnecessary pin (#8535) 2025-11-16 22:17:26 +00:00
Inner DaemonsandAndreas Reich 05369a6b83 Multiview on DX12 (#8495)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2025-11-16 17:46:52 +01:00
Anton Kushakov c78f944f2f Fix: Race condition when compute shader writes to texture. (#8527) 2025-11-16 16:29:41 +01:00
d0cf78c8c8 [hal/metal] Mesh Shaders (#8139)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
Co-authored-by: Magnus <85136135+SupaMaggie70Incorporated@users.noreply.github.com>
2025-11-14 23:11:43 -05:00
92fa99af1b Switch to pipeline stream desc for dx12 pipeline creation (#8377)
Co-authored-by: Inner Daemons <magnus.larsson.mn@gmail.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2025-11-14 21:35:28 +00:00
Vecvec efca3f5066 [spirv] Make ray queries safer (#8390) 2025-11-13 00:33:32 -05:00
a05c70cef7 WGSL parsing for mesh shaders (#8370)
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: SupaMaggie70Incorporated <85136135+SupaMaggie70Incorporated@users.noreply.github.com>
2025-11-12 21:06:20 -05:00
s-ol d017d48b45 Allow passing external_memory in vulkan-hal::Device::texture_from_raw() (#8512) 2025-11-11 11:01:02 -05:00
Erich Gubler 9447a22288 refactor(gles): document Buffer::map_flags (#8455) 2025-11-05 21:11:34 +00:00
Marijn Suijten 59a03eaf2f [d3d12 wgl] Upgrade to windows 0.62 crates (#6876)
* [d3d12 wgl] Upgrade to `windows 0.59` crates

https://github.com/microsoft/windows-rs/releases/tag/0.61.0

The latest `windows 0.59` and `windows-core 0.59` crates were
just released (strangely tagged `0.61`), including some minor code
improvements for us.  The MSRV has been bumped to `1.74`, but `wgpu` is
already on `1.76` anyway.

* [d3d12 wgl] Upgrade to `windows 0.61` crates

https://github.com/microsoft/windows-rs/releases/tag/63

* [d3d12 wgl] Upgrade to windows 0.62 crates

https://github.com/microsoft/windows-rs/releases/tag/69
2025-11-05 11:47:31 -05:00
Connor Fitzgerald 71b5fb0ad9 Update WARP (#8444) 2025-11-04 23:57:49 -05:00
ad0f3111b7 Add multiview limits and tests (#8206)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
Co-authored-by: Magnus <85136135+SupaMaggie70Incorporated@users.noreply.github.com>
2025-11-01 12:08:15 +00:00
bf9f7524ec Add mesh shading info to naga IR (#8104)
Co-authored-by: Jim Blandy <jimb@red-bean.com>
Co-authored-by: SupaMaggie70Incorporated <85136135+SupaMaggie70Incorporated@users.noreply.github.com>
2025-10-29 14:49:51 -04:00
Mikołaj Radkowski e7fcb94888 Make multi-planar textures renderable (#8307) 2025-10-29 13:33:48 -04:00
atlv ddcd89fd69 Implement shader barycentrics (#8320) 2025-10-29 13:15:21 -04:00