Commit Graph
10422 Commits
Author SHA1 Message Date
Connor Fitzgerald 384b7bb027 Update codespan-reporting to 0.13 (#9243) 2026-03-16 21:52:58 +00:00
Erich Gubler 4d13af7a1a test(CHANGELOG): allow deletion up to released (#9246) 2026-03-16 20:53:42 +00:00
Erich Gubler c1618ce367 feat(webgpu): recognize float32-blendable feature (#9103) 2026-03-16 19:20:06 +00:00
Andy Leiserson 6604345c2e fix(naga msl-out): Fix invalid MSL when vertex data and shader type are both f16 (#9166) 2026-03-16 13:03:58 -06:00
ecoricemonandConnor Fitzgerald cbc20f698c fix(naga): Check domain and overflow in const-eval (#9224)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-03-16 11:22:30 -06:00
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
Luo Zhihao fff3d25eb1 Docs: Clarify Unorm8x4Bgra and Unorm10_10_10_2 vertex formats (#9241) 2026-03-16 11:50:52 -04:00
Andreas ReichandConnor Fitzgerald ffc2db03b6 Changelog fixes (#9234)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-03-16 11:11:34 -04:00
renovate[bot] 71706c3d5d chore(deps): update cts digest to e9adcf8 (#9237)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-16 13:50:44 +00:00
Chris Biscardi 252ef09792 move WriteOnly to wgpu-types (#9236)
* move WriteOnly to wgpu-types

* un-pub mod, because pub use * is already in play

* fixup doctests

* link to wgpu items
2026-03-16 08:37:17 -04:00
Inner DaemonsandAndreas Reich 96b7872f77 Fix local_invocation_id and local_invocation_index handling (#9099)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2026-03-15 20:25:19 +00:00
OpsticandAndreas Reich e682ce3f29 Enable use of GL_EXT_multisampled_render_to_texture extension for OpenGL backend (#8536)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2026-03-15 20:08:08 +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
Andy Leiserson e80dc8decf Annotate expected failures on Metal, MoltenVK, and KosmicKrisp (#9188) 2026-03-14 22:41:20 -04:00
Andy Leiserson 3899edce8c refactor(metal): MTLCommandQueue is thread-safe (#9217) 2026-03-14 22:31:57 -04:00
Vecvec 50a4eaa75c [vulkan] Offset AccelerationStructureGeometryTrianglesDataKHR::vertex_data instead of using first_vertex (#9220) 2026-03-14 22:30:09 -04:00
Kevin Reid 70a1ffdef8 Move WriteOnly to major changes section of the changelog. (#9231) 2026-03-14 22:29:41 -04:00
John TurandConrad Irwin e66813a88e Fix OpenGL robustness fallback when the robustness extension is unsupported (#9153)
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
2026-03-14 22:29:14 -04:00
atlv ac62b9abed Add MTL Version3_2 (#9223) 2026-03-14 23:10:19 +00:00
Andy Leiserson b559ace80e Waive failing test on dx12 (#9227)
See #9226
2026-03-14 21:44:37 +00:00
Inner Daemons 41f7c288de Added fix and regression test for primitive id on FXC (#9218) 2026-03-13 23:51:03 +01:00
Andy Leiserson ca3239e689 chore!: Move PRIMITIVE_INDEX feature into the WebGPU group (#9101)
Enable relevant CTS tests.
2026-03-13 13:52:14 -07:00
teoxoy d8ec0708ab add changelog entry 2026-03-13 16:24:43 +01:00
teoxoy 83c906f99f [hal] add missing WebGPU adapter capability guarantees 2026-03-13 16:24:43 +01:00
teoxoy c81c9783c5 [metal] don't store adapter limits
Fixes #8715.
2026-03-13 16:24:43 +01:00
teoxoy 1cce93aa28 [d3d12] account for our usage of SRVs & UAVs when calculating per-stage
limits
2026-03-13 16:24:43 +01:00
teoxoy b234c2f5c8 [d3d12] add ResourceBindingTier enum 2026-03-13 16:24:43 +01:00
teoxoy a22e43991c [vk] take into account maxDescriptorSet* limits when computing
per-stage limits
2026-03-13 16:24:43 +01:00
teoxoy 51fb8017d4 add test for max binding index 2026-03-13 16:24:43 +01:00
teoxoy 0a4cfc40f1 [wgsl] allow concretization to other valid scalars 2026-03-13 16:24:43 +01:00
teoxoy 990e12ebbc [wgpu-hal] report accurate maxBindingsPerBindGroup limits 2026-03-13 16:24:43 +01:00
teoxoy 3d637fa78d [vk] lower relevant per stage limits to stay under Vulkan's
`maxPerSetDescriptors` limit
2026-03-13 16:24:43 +01:00
teoxoy 59eb0ee70c use cap_limits_to_be_under_the_sum_limit to clamp per-stage limits 2026-03-13 16:24:43 +01:00
teoxoy 3f90204744 [vk] lower relevant per stage limits to stay under Vulkan's
`maxPerStageResources` limit

Fixes #9151.
2026-03-13 16:24:43 +01:00
teoxoy 085fd3c565 [vk] consult maxMemoryAllocationSize & maxBufferSize
Fixes #3326.
2026-03-13 16:24:43 +01:00
teoxoy c819484751 [metal] fix limits
Fixes #8173.
2026-03-13 16:24:43 +01:00
teoxoy f06431f6de [vk] fix limits 2026-03-13 16:24:43 +01:00
teoxoy 2b8fa47f5f [d3d12] fix limits
Resolves #3333.
2026-03-13 16:24:43 +01:00
atlv c4c623fb45 wgpu-naga-bridge (#9201) 2026-03-13 11:09:12 -04:00
atlv 4e7ffe0938 Workaround Metal driver bug with atomic texture writes (#9185) 2026-03-13 11:01:23 -04:00
atlv 9ed77372b4 Add coherent and volatile memory decorations for storage buffers. (#9168) 2026-03-11 19:53:52 -04:00
Kevin Reid a97a49d1d6 Replace &mut [u8] access to mapped buffers with WriteOnly.
When accessing a buffer for writing, do not expose (or internally
create) any `&'a mut [u8]` references to that memory, so as to avoid
exposing write-combining memory that might visibly misbehave in atomic
operations. Instead, expose the new pointer type `WriteOnly<'a, [u8]>`
which offers only write operations. This can be sliced and reborrowed,
allowing it to be used in most ways which `&mut [u8]` would be,
hopefully with near-zero overhead.

This pointer type might also allow users to opt in to uninitialized
memory for performance, while confining the consequences to GPU UB
rather than Rust UB. However, that is a future possibility and is not
implemented in this commit other than as a consideration in defining the
API of the `WriteOnly` type.

This change is not a complete solution to the problem of write-combining
memory because it is still possible to read after writing by calling
`get_mapped_range()` after `get_mapped_range_mut()`. However, that is
solvable separately, perhaps with a barrier or a validation change,
and is not particularly coupled with this part of the solution.
2026-03-11 16:58:48 -04:00
Kevin Reid e6899b5362 Add WriteOnly type.
`WriteOnly<'a, T>` is a custom smart pointer which is stricter than
`&'a mut [T]` in that it only allows writing data and not reading it.
This will be part of the fix for <https://github.com/gfx-rs/wgpu/issues/8897>.

This commit only introduces the public type and does not use it.
2026-03-11 16:58:48 -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 da77a43313 Update naga capabilities for TLAS array 2026-03-11 08:18:38 -07:00