Andy Leiserson
3e8a11c626
Fix performance regression in bind group processing ( #8519 )
2025-11-15 14:26:27 -08:00
Andy Leiserson
d0218b27a4
Fix clamping at minimal render extent ( #8486 )
...
This was a regression introduced by #8307 .
For mipmapped multi-planar textures, requires that the size is a
multiple of a power of two determined by the mip level count, in lieu
of properly aligning the size of each mip level to an even
dimension. See #8491 .
(The failure referred to by "fails due to missing validation" was
fixed before the regression, by #8402 , but was not identified as fixed
and added to the test list at that time.)
2025-11-13 14:00:14 -08: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
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
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
2d699295ce
Restore PointerId(...) serialized representation
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
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
Erich Gubler
54beef8aca
typo: TransferError:InvalidMipLevel: s/does no/does not/ ( #8437 )
2025-10-28 21:11:17 +01:00
charlotte 🌸
0810110bd7
Add pci bus and device uuid to AdapterInfo ( #8290 )
2025-10-24 11:53:44 -04:00
Erich Gubler
e65468ec6a
chore: s/allow/expect for clippy::collapsible_if ( #8425 )
2025-10-23 18:34:41 -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
Andy Leiserson
7f644452f0
Check for attachment overlap using textures, not views ( #8402 )
2025-10-22 17:37:38 +02:00
Andy Leiserson
d575c0234b
Disallow mixing the raw encoding API with the wgpu API ( #8373 )
2025-10-22 11:34:40 -04:00
Opstic and Connor Fitzgerald
f0209e3db8
Add support for transient textures on Vulkan and Metal ( #8247 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2025-10-16 19:50:01 +00:00
Connor Fitzgerald
7fdc5f1086
Improve various TextureView error messages ( #8323 )
2025-10-16 15:07:12 -04:00
Erich Gubler
e2f70c2481
refactor: satisfy mismatched_lifetime_syntaxes lint ( #8350 )
2025-10-16 11:30:30 -04:00
Andy Leiserson
3f7dae1a30
Additional api_logging for passes ( #8326 )
2025-10-13 13:19:29 -04:00
Jim Blandy
1cbebdcffe
[core] Don't skip binding index checks for derived layouts. ( #8325 )
...
When deriving a bind group layout for a pipeline, bother to enforce
`wgpu_types::Limits::max_bindings_per_bind_group`. Move the check:
- from `wgpu_core::device::bgl::EntryMap::from_entries`, which is only used
for explicit bind group creation
- into `wgpu_core::device::Device::create_bind_group_layout`, which is used
for all bind group layout creation.
2025-10-10 16:38:35 +00:00
Andy Leiserson
3958790a85
refactor: Split finish between Global and CommandEncoder ( #8288 )
2025-10-09 15:13:45 +02:00
Erich Gubler
adf4b2f2de
fix: reject fragment shader output locations > max_color_attachments limit
2025-10-08 16:34:43 -04:00
Erich Gubler
1f91bfe465
refactor: check_stage: convert if to match for I/O checks
2025-10-08 16:34:43 -04:00
Erich Gubler
93692470ab
refactor: Interface::check_stage: use concat!(…) for non-invariant @builtin(position) warning
2025-10-08 16:34:43 -04:00
Sam
a8f51f8fd1
Split MipmapFilterMode from FilterMode ( #8314 )
2025-10-08 18:06:33 +02:00
renovate[bot] and Andreas Reich
854664a90d
chore(deps): update crate-ci/typos action to v1.37.3 ( #8306 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andreas Reich <r_andreas2@web.de >
2025-10-06 19:32:39 +00:00
Connor Fitzgerald
e73d0558f0
Fix docs.rs build ( #8292 )
2025-10-06 13:11:48 -04:00
Andy Leiserson
334170b21e
Block creating mesh shader pipelines when the feature is not available ( #8298 )
2025-10-04 03:12:52 -04:00
Connor Fitzgerald
482a983e10
Release v27 ( #8287 )
2025-10-01 19:36:18 -04:00
Andreas Reich
333f811e9c
Rework wgpu::PollType to only two enum variants ( #8285 )
2025-10-01 18:08:07 -04:00
Andreas Reich
00ea850d79
Allow timeouting on poll ( #8282 )
2025-10-01 07:19:24 +00:00
Andy Leiserson and Andreas Reich
1967900565
Encode commands on finish ( #8220 )
...
Co-authored-by: Andreas Reich <r_andreas2@web.de >
2025-09-25 14:22:51 -04:00
Andie Bradley
f6005a16c8
Include FreeBSD in conditional compile attributes ( #8246 )
2025-09-20 22:46:46 -04:00
Andy Leiserson
04a3401638
Extract command encoding to free functions ( #8210 )
2025-09-11 15:15:33 -04:00
Andy Leiserson
67bdd80a38
Add cbindgen:ignore directives ( #8212 )
2025-09-11 19:10:05 +00:00