Andy Leiserson
f3982866be
refactor(core): Replace StagingBuffer::write with write_exact
2026-09-08 15:07:15 -07:00
Andy Leiserson
fb93139671
feat: Support zero-size vertex and index buffer bindings
...
Fixes #3170
2026-09-08 15:07:15 -07:00
Andy Leiserson
ea0afc6216
refactor: Parameterize type of hal::BufferBinding::size; resolve sizes in core
...
For storage and uniform buffer bindings, the size is a `wgt::BufferSize`
(`NonZeroU64`). For vertex and index buffer bindings, the size is a
`wgt::BufferAddress` (regular `u64`).
Temporarily breaks some zero-size vertex/index binding cases that worked
before (end of buffer); will be resolved in an immediate follow-up
commit that fully implements zero-size vertex/index binding support.
2026-09-08 15:07:15 -07:00
Vecvec
68d122e9e7
Optimise Tlas building ( #9961 )
2026-08-28 20:56:59 +00:00
Luo Zhihao and Connor Fitzgerald
4d749308e6
Fix separate depth stencil read-only state ( #9763 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2026-08-28 15:31:26 +00:00
Andy Leiserson
f0704423c9
fix(core): Init tracking for pass with multiple depth slice attachments
2026-08-25 12:51:23 -07:00
Andy Leiserson
70d4865941
fix(core): Fix init tracking for 3D textures as render attachments
...
Fixes #9455
2026-08-25 12:51:23 -07:00
Andy Leiserson
0bffa87506
fix(core): Derive TextureInitRange from TextureView
...
Derive `TextureInitRange` from `TextureView`, rather than
`TextureSelector`. Unambiguous conversion requires knowing
whether the texture is 3D.
2026-08-25 12:51:23 -07:00
Andy Leiserson
4a4db416c3
fix(core): Fix discard tracking for divergent depth/stencil ops
2026-08-25 12:51:23 -07:00
Sam
6710991814
Implement spec compilant erroring of create_render_bundle_encoder ( #10115 )
2026-08-25 17:58:57 +02:00
sagudev
b024802f8c
Handle CommandEncoder errors inside wgpu-core
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-08-19 15:23:27 +02:00
sagudev
c64625f092
Handle RenderPass errors inside wgpu-core
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-08-19 15:23:27 +02:00
sagudev
00fca71151
Handle ComputePass errors inside wgpu-core
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-08-19 15:23:27 +02:00
sagudev
130acbe90c
[core] Add Arc<Device> getter to encoders
...
Ideally we would implement ParentDevice but it needs Labeled which is nontrivial
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-08-19 14:26:54 +02:00
Andy Leiserson
83062dd4cd
fix(core): Avoid overlapping locks in initialize_texture_memory
2026-08-14 18:59:00 -07:00
Sam
5cd735daf4
Extract IDs, Registries and Global into wgpu-core-remote ( #10053 )
2026-08-14 14:24:01 +02:00
sagudev
b7b3208b72
Call RenderPass::end from Global::render_pass_end
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-08-12 18:54:48 +02:00
sagudev
0fd8a3c41c
[core] Degeneralize BindGroupStateChange
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-08-11 14:04:27 +02:00
sagudev
a43511d3aa
[core] Do not use IDs as default types in ComputePassDescriptor
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-08-11 14:04:27 +02:00
sagudev
317aeaf7be
[core] Do not use IDs as default types in PassTimestampWrites
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-08-11 14:04:27 +02:00
sagudev
09bf6ccf19
[core] Do not use IDs as default types in RenderPassColorAttachment
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-08-11 14:04:27 +02:00
sagudev
1fc630056b
[core] Do not use IDs as default types in RayTracing types
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-08-11 14:04:27 +02:00
Andy Leiserson
390f05b69a
fix(core): Lose device on errors during critical part of submission
2026-08-07 17:07:48 -07:00
sagudev
bf063c0a4a
[core] Make more stuff public for #5121
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-30 04:54:40 -04:00
sagudev
0eb5b623df
Replace all occurrences of Global:: in rustdocs with methods on Resources
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-20 17:36:36 -07:00
Luo Zhihao
0ae95c7365
Fix flush_immediates out of range ( #9906 )
2026-07-20 19:38:08 +00:00
Luo Zhihao
77c17d24b0
Fix required immediate slots calculation and panics when slots overflow ( #9725 )
2026-07-20 12:06:14 -07:00
Anton Wagner
59209f2761
Deduplicate TLAS build dependencies by unique BLAS ( #9835 )
2026-07-17 19:29:35 +12:00
sagudev
f680a2c242
[core] Make Global methods of RenderBundleEncoder thin
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-16 12:10:18 -07:00
sagudev
06d50f9fc5
Arced resources in RenderBundleEncoder
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-16 12:10:18 -07:00
sagudev
0e330246cd
check device validity at creation
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-16 12:10:18 -07:00
sagudev
09e21cfa7b
pass arced device to RenderBundleEncoder
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-16 12:10:18 -07:00
sagudev
0eb09514a4
[core] Remove bundle_ffi
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-16 12:10:18 -07:00
Andy Leiserson
bfdd45b6b8
fix(core): Add missing indirect draw validation for render bundles ( #9871 )
2026-07-15 08:55:22 -07:00
Luo Zhihao
2b92ae160d
Defer set_immediates to draw/dispatch call time ( #9597 )
2026-07-10 15:52:20 -07:00
Luo Zhihao and Jim Blandy
7fe459a58b
Lower clippy large-error-threshold ( #9612 )
...
Co-authored-by: Jim Blandy <jimb@red-bean.com >
2026-07-07 13:42:21 -04:00
Sam
4e9fd048d3
[core] Make some Global methods thin in device ( #9826 )
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-07 15:08:49 +02:00
sagudev
4b272a6539
[core] Make Global methods thin in transition_resources
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-07 10:55:25 +02:00
sagudev
c5b16e1843
[core] Make Global methods thin in transfer
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-07 10:55:25 +02:00
sagudev
6b410aa5c3
[core] Make Global methods thin in query
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-07 10:55:25 +02:00
sagudev
3c22ad5da3
[core] Make Global methods thin on command/mod
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-07 10:55:25 +02:00
sagudev
49e9f14fd0
thin Global in RenderPass
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-07 10:38:22 +02:00
sagudev
594f7e302c
thin Global in ComputePass
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-07 10:38:22 +02:00
sagudev
91818a4368
Generalize BindGroupStateChange
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-07 10:38:22 +02:00
sagudev
ba658473e3
[core] Make Global methods thin for acceleration_structures
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-07 10:27:50 +02:00
sagudev
7470ce815c
Generalise ray_tracing structures
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-07 10:27:50 +02:00
Sam
b4e413cba1
[core] Make Global methods thin in clear ( #9822 )
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-07 10:09:43 +02:00
sagudev
2a8304eef3
[core] Move validity into Arc<BindGroup>
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-06 15:06:57 +02:00
Sam
52a280d631
[core] Move validity into Arc<Buffer> ( #9803 )
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-06 13:51:11 +02:00
Sam
e8f464d244
[core] Move validity into Arc<Tlas> ( #9802 )
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-07-06 13:14:44 +02:00