9882 Commits

Author SHA1 Message Date
Inner Daemons
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
Kevin Reid
5633ae8649 Show command encoder label in validation errors.
The plumbing to get it out of `wgpu_core` is awkward but I didn’t see
a clearly better option. I think it would make sense to have something
like `Global::get_label<T>(id: Id<T>) -> String` but that looks like a
lot more work.
2025-10-31 13:03:55 -04:00
Kevin Reid
586b344719 Fix CHANGELOG headings/organization. 2025-10-31 13:03:55 -04:00
Kevin Reid
85fb959d20 Correct documentation of alignment/size requirements for buffer mapping.
The documentation previously claimed that the end point must be aligned
to `MAP_ALIGNMENT` = 8, but in fact it only needs to be aligned to 4.

Also fixed `map_buffer_on_submit()` referring to “this slice” instead of
“`bounds`”.
2025-10-31 11:54:46 -04:00
Kevin Reid
da927daf82 StagingBelt: add a test and document slice size requirements.
* Add documentation that every `allocate()` or `write_buffer()`
  operation must have a size that is a multiple of 4.

* Add assertions for those properties (this gives more helpful panics
  than leaving it to validation).

* Add a randomized test to exercise usage of StagingBelt.
  I was concerned that `StagingBelt` might have an alignment math bug;
  having written this test, I am much less concerned. There was previously
  no test for `StagingBelt` at all, if you don’t count examples/skybox.
2025-10-31 11:53:46 -04:00
Connor Fitzgerald
a682d9e15a
Update desired_maximum_frame_latency documentation (#8421) 2025-10-30 13:57:52 +01:00
Andy Leiserson
c6dc8eeac5 Remove get_buffer alias of resolve_buffer_id 2025-10-30 13:52:58 +01:00
Andy Leiserson
5ac2ed19cb Fix serde feature gating 2025-10-30 13:52:58 +01:00
Andy Leiserson
c501ef68df Remove stale attributes 2025-10-30 13:52:58 +01:00
Andy Leiserson
a60e71c765 Clarify comment about Arc::as_ptr 2025-10-30 13:52:58 +01:00
Andy Leiserson
50a26133ec Remove redundant device validity check and inaccurate comment 2025-10-30 13:52:58 +01:00
Andy Leiserson
9d0fd2153b Condition macro_rules_attribute dev-dependency on serde feature 2025-10-30 13:52:58 +01:00
Andy Leiserson
242c49f90d Fix get_mapped_range duplication 2025-10-30 13:52:58 +01:00
Andy Leiserson
41dc177c5b Fix Free* operations 2025-10-30 13:52:58 +01:00
Andy Leiserson
2d699295ce Restore PointerId(...) serialized representation 2025-10-30 13:52:58 +01:00
Andy Leiserson
19e57d3b44 Fix debugger capture 2025-10-30 13:52:58 +01:00
Andy Leiserson
1be2ce6190 Clean up device poll API 2025-10-30 13:52:58 +01:00
Andy Leiserson
07ce023cf1 Replay traces with pointers as IDs 2025-10-30 13:52:58 +01:00
Andy Leiserson
67da4cbc03 Store pointers instead of IDs when tracing (2/2)
This updates non-pass command encoder operations and device operations.
2025-10-30 13:52:58 +01:00
Andy Leiserson
e584f382e0 Store pointers instead of IDs when tracing (1/2)
This updates pass operations.

The trace player is temporarily broken.
2025-10-30 13:52:58 +01:00
Andy Leiserson
a502e73c1d Create submodule of device::trace for recording support 2025-10-30 13:52:58 +01:00
Andy Leiserson
5798a443d2 Add ReferenceType trait for command structures
Use it to deduplicate some `Foo` / `ArcFoo` / `TraceFoo` definitions.
2025-10-30 13:52:58 +01:00
Andy Leiserson
c0cce5973c Move start/stop debugger capture out of Global 2025-10-30 13:52:58 +01:00
Andy Leiserson
73d1334ba3 Move surface_configure out of Global 2025-10-30 13:52:58 +01:00
Andy Leiserson
21ea8f2979 Move set_buffer_data and get_mapped_range out of Global 2025-10-30 13:52:58 +01:00
Vecvec
f314b1611a
Lower blas_max_primitve_count (#8446) 2025-10-29 23:03:34 -04:00
Connor Fitzgerald
098f320f81
Update VulkanSDK (#8443) 2025-10-29 21:52:45 -04:00
Connor Fitzgerald
42dc809e8b
Update DXC (#8441) 2025-10-29 17:29:45 -04:00
Inner Daemons
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
7a2afeb014
fix(vulkan): remove atomic memory semantics (#8391) 2025-10-29 13:21:56 -04:00
atlv
ddcd89fd69
Implement shader barycentrics (#8320) 2025-10-29 13:15:21 -04:00
Erich Gubler
54beef8aca
typo: TransferError:InvalidMipLevel: s/does no/does not/ (#8437) 2025-10-28 21:11:17 +01:00
renovate[bot]
d8f97261d2
chore(deps): update cargo.lock (#8435)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-27 11:59:42 +01:00
renovate[bot]
6ae3ee569f
chore(deps): update cts digest to 3f7ca40 (#8433)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-27 11:59:22 +01:00
renovate[bot]
e4e89feeed
chore(deps): update actions/upload-artifact action to v5 (#8434)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-27 11:58:55 +01:00
Connor Fitzgerald
ef1d31955a
Factor out swapchain to abstracted interface (#8356) 2025-10-26 22:02:40 -04:00
charlotte 🌸
0810110bd7
Add pci bus and device uuid to AdapterInfo (#8290) 2025-10-24 11:53:44 -04:00
Friz64
982a2100f4
Delete .envrc (#8428) 2025-10-24 10:25:57 -04:00
Erich Gubler
18f4ed66c0
chore: satisfy unused_parens lint (#8424) 2025-10-23 18:35:18 -04:00
Erich Gubler
e65468ec6a
chore: s/allow/expect for clippy::collapsible_if (#8425) 2025-10-23 18:34:41 -04:00
Connor Fitzgerald
a360732bb3
Delete shell.nix (#8415) 2025-10-23 15:04:50 -04:00
Connor Fitzgerald
02145c435c docs(CHANGELOG): import entries from v26.0.6, v27.0.4 2025-10-23 15:00:44 -04:00
Erich Gubler
48f047f947 docs(CHANGELOG): move #8250's entry to Unreleased 2025-10-23 15:00:44 -04:00
Erich Gubler
1ba953d4f3 docs(CHANGELOG): move #8247's entry to Unreleased 2025-10-23 15:00:44 -04:00
Erich Gubler
8e61646521 docs(CHANGELOG): import entries from v26.0.5, v27.0.3 2025-10-23 15:00:44 -04:00
Andy Leiserson
3ca6a1c0df Defer some bind group processing until draw/dispatch
This allows us to save some work when a bind group is replaced,
although WebGPU still requires us to fail a submission if any
resource in any bind group that was ever referenced during
encoding is destroyed.

Fixes #8399
2025-10-23 14:59:25 +02:00
Andy Leiserson
e8dfc72d04 Small refactors related to bind group tracking for compute passes
* Don't remove resources from the usage scope, it is not necessary, and
  not useful, since we don't verify the scope is empty afterwards.
* Avoid some unnecessary `unsafe`.
2025-10-23 14:59:25 +02:00
Connor Fitzgerald
b3d94317d4
[hal/vulkan] Wait for fence signalled in vkAcquireNextImage (#8420) 2025-10-22 23:16:09 -04:00
Andy Leiserson
7f644452f0
Check for attachment overlap using textures, not views (#8402) 2025-10-22 17:37:38 +02:00