Jim Blandy
4f4581fdff
[core] Combine ShaderModuleState with ShaderMetaData.
...
In `wgpu_core::pipeline`, delete `ShaderMetaData` and turn
`ShaderModuleState` into the equivalent enum, giving both the
`NagaModule` and `Passthrough` variants their own `raw` field.
Arrange for uses of `ShaderModuleState` to extract the raw `wgpu_hal`
module in the `match` expression that handles the two variants.
In isolation, this change looks like mere rearrangement, not a
cleanup, but hopefully either way it's easy to see that it has no
effect on behavior. Subsequent commits will remove `raw` from the
`NagaModule` variant; this refactor will allow that to affect only the
`NagaModule` `match` arms, leaving the passthrough code unaffected.
2026-10-26 23:42:33 +00:00
Jim Blandy
00583c146b
[core] Move ShaderMetaData, PassthroughInterface to pipeline.rs.
...
Move the definitions of `ShaderMetaData` and `PassthroughInterface`
from `wgpu_core::validation`, which does not use them, to
`wgpu_core::pipeline`, where they are used in `ShaderModuleState`, and
created.
2026-10-26 23:42:33 +00:00
Jim Blandy
48b67d4826
[core] Refactor ShaderMetaData use sites to use match.
...
Slightly reorder the sites that consume `ShaderMetaData` values, so
that the code for the `NagaModule` and `Passthrough` cases can be
gathered into `match` statements.
2026-10-26 23:42:33 +00:00
Jim Blandy
69863648a8
[core] Turn ShaderMetaData into a Naga-vs.-passthrough enum.
...
Rename the `ShaderMetaData::Interface` variant to `NagaModule`,
and make it a struct-like variant.
Delete `ShaderMetaData::interface`, and update its call sites to use a
`match` expression directly on the enum instead. This makes the use
sites clearer, by making it apparent which style of module we're
processing.
2026-10-26 23:42:33 +00:00
renovate[bot]
7f5c0714ff
Update cts digest to b009414 ( #10719 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-26 22:43:21 +00:00
sagudev
0c7c12193a
[deno] Minimize OpState borrow
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-10-26 18:49:57 +00:00
sagudev
319adfbcaa
webgpu:api,validation,buffer,mapping:* now pass
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-10-26 18:49:57 +00:00
sagudev
401fc01b7b
[deno] Fix substract overflow
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-10-26 18:49:57 +00:00
sagudev
f2f0acb748
webgpu:api,validation,buffer,mapping:mapAsync,* now pass
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-10-26 18:49:57 +00:00
sagudev
3208fe8c94
[deno] Ensure map state is still pending after defer
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-10-26 18:49:57 +00:00
sagudev
2eec736394
[deno] Do poll after Device::destroy to call
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-10-26 18:49:57 +00:00
sagudev
e04cd38d59
[deno] Call GPUBuffer::unmap procedure on GPUBuffer::destroy
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-10-26 18:49:57 +00:00
sagudev
cea73e5dac
[deno] proper deferred mapAsync promise resolution
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-10-26 18:49:57 +00:00
sagudev
06dc3fe338
[deno] Check buffer state in content timeline
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-10-26 18:49:57 +00:00
sagudev
e12b2c27f1
[deno] Fixup DOMException builders
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-10-26 18:49:57 +00:00
sagudev
a8cfdef04e
[core] Support passing MapMode as (potentially invalid) bitflags
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-10-26 18:49:57 +00:00
sagudev
ba46bd1452
[deno] Map BufferErrors to Abort/Operation as in spec
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-10-26 18:49:57 +00:00
sagudev
9e80fc9d1d
[core] Do device validity check at the start of try_map_async
...
this is important as we need to return Abort error instead of Operation error which is raised on invalid buffer
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-10-26 18:49:57 +00:00
sagudev
4e98175c04
[core] Destruct BufferMappingOperation into mode and callback arguments
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-10-26 18:49:57 +00:00
John Delaney and Andreas Reich
100c142937
Backend Caching of Heavy Requests ( #10513 )
...
Co-authored-by: Andreas Reich <r_andreas2@web.de >
2026-10-25 12:53:00 +00:00
Douglas Dwyer and Inner Daemons
322168c778
fix(wgpu): Make TextureBlitter respect sample_type when downsampling ( #10657 )
...
Co-authored-by: Inner Daemons <85136135+inner-daemons@users.noreply.github.com >
2026-10-25 12:33:50 +00:00
JMS55
2edafa5240
Record 1 barrier for N Queue::write_buffer/texture calls by deferring to submit time ( #10319 )
2026-10-25 11:57:55 +00:00
Andy Leiserson
63e505290e
fix(core): Check that clear_texture targets all aspects ( #10684 )
2026-10-22 17:16:48 +00:00
renovate[bot]
bbb9b06e90
Update Cargo.lock ( #10528 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-22 15:50:16 +00:00
Sam
4fb3ccaa77
[core] Do not forget to fire user callback in configure ( #10686 )
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-10-22 06:42:02 +00:00
Andy Leiserson
09a0eba3aa
fix(metal): Update sampler binding array limit from Metal docs ( #10649 )
2026-10-22 06:37:24 +00:00
Horu
c0c938bb0b
Discard unused StagingBelt's free chunks ( #10383 )
2026-10-22 06:35:37 +00:00
Andy Leiserson
4e3916783a
Remove wgpu features for indicating Vulkan extension availability ( #10635 )
2026-10-22 06:20:43 +00:00
Andy Leiserson
ade0590d81
Revert "Fix merge queue merging non-approved commits ( #10552 )" ( #10691 )
2026-10-22 05:01:14 +00:00
Inner Daemons and Andy Leiserson
0f0262acdd
Correctly zero init multiplanar textures ( #9700 )
...
Co-authored-by: Andy Leiserson <aleiserson@mozilla.com >
2026-10-22 00:11:46 +00:00
renovate[bot]
8e4718d5a1
Update zizmorcore/zizmor-action action to v0.7.1 ( #10669 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-21 11:55:19 +00:00
Jim Blandy
ccd6966eed
[core] Clean up Interface::finalize_entry_point_name. ( #10556 )
2026-10-21 10:03:11 +00:00
Jim Blandy
28a16856de
[core] Include the shader stage in MissingEntryPoint errors. ( #10544 )
2026-10-21 09:23:00 +00:00
Jim Blandy
3050396df2
[core] Combine Create{Compute,Render}PipelineError. ( #10569 )
2026-10-20 19:51:32 +00:00
renovate[bot]
4ebd7ca482
chore(deps): update cts digest to 9c85c65 ( #10665 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-20 18:56:41 +00:00
Lexo Liu
6511b8f2da
Revert "vulkan: work around Arm drivers ignoring negative viewport heights" ( #10674 )
2026-10-20 18:15:13 +00:00
Simon Hausmann
05ae83af5e
fix(metal): permit acquiring drawables until the window has been visible ( #10302 )
2026-10-20 17:38:14 +00:00
Andy Leiserson
0342e2fba5
fix(core): Check same-device for external texture planes ( #10636 )
2026-10-20 16:56:33 +00:00
Abir Deol
e084b66aab
[naga spv-out] Declare LocalInvocationIndex once in mesh entry points ( #10497 )
2026-10-18 19:01:10 +00:00
Ian McFarlane
efcf445784
Fix crash in lock validation due to TLS destructor call order ( #10030 )
2026-10-17 02:24:41 +00:00
Acshi Haggenmiller
4bd4405d02
fix(msl): set the metal shader language version when in passthrough mode ( #10574 )
2026-10-17 01:46:19 +00:00
Sam
ee1904a1f8
[core] Read-only slice into WC memory is OK ( #10634 )
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-10-17 00:59:57 +00:00
Ilyas Mallah
304a72dca8
naga: Fix build with only arbitrary feature (used for fuzzing) ( #10637 )
2026-10-17 00:12:27 +00:00
Yilmaz Kiymaz
a4b0f2257a
[hal vulkan] Enable the depthBiasClamp feature when it is supported ( #10566 )
2026-10-16 13:53:30 +00:00
Yilmaz Kiymaz
7f29aa4b57
[naga spv-in] Accept a signed integer ViewIndex input ( #10568 )
2026-10-16 13:29:15 +00:00
Abir Deol
14328f4991
Validate mesh draws in render bundles against the multiview mask ( #10496 )
2026-10-14 16:15:09 +00:00
Kevin Reid
60036cdc0a
Fix Cargo lint from Rust 1.100 ( #10576 )
2026-10-14 00:35:08 +00:00
renovate[bot]
e6141e25ba
chore(deps): update tombi-toml/setup-tombi action to v1.8.4 ( #10590 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-13 23:52:41 +00:00
renovate[bot]
45a4cf6677
chore(deps): update crate-ci/typos action to v1.51.1 ( #10589 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-13 22:44:02 +00:00
Andy Leiserson
66e992c3a1
refactor(types): Move ExternalTextureTransferFunction to naga-types
2026-10-13 19:34:06 +00:00