Commit Graph
509 Commits
Author SHA1 Message Date
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
Luo ZhihaoandConnor 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
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 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
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 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 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
Luo Zhihao 0ae95c7365 Fix flush_immediates out of range (#9906) 2026-07-20 19:38:08 +00: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 ZhihaoandJim 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
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 91818a4368 Generalize BindGroupStateChange
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-07 10:38:22 +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 18714da8da [core] Move validity into Arc<RenderBundle> (#9797)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-03 10:21:56 +02:00
Sam 99f8284e42 [core] Move validity into Arc<QuerySet> (#9795)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-02 17:05:08 +02:00
Sam b65c47ad60 [core] Move validity into Arc<TextureView> (#9787)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-02 09:13:30 +02:00
Sam 979ab2bca6 [core] IDed encoders needs to be dropped (#9782)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-01 14:02:32 +02:00
Sam 7877b766c8 [core] Move begin_*_pass to CommandEncoder and do only ID resolve in global (#9781)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-01 11:22:32 +02:00
Sam 5e139ccbeb [core] Add support IDed RenderPasses in Global (#9740)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-30 15:30:02 +02:00
Sam 5a5caa01ad [core] Move validity into Arc<RenderPipeline> (#9752)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-29 11:10:45 +02:00
Erich Gubler fc60449802 refactor: rename WorkgroupSizeCheck::sizes to dimensions 2026-06-25 11:55:58 -07:00
Erich Gubler 127a367497 refactor: reimpl. check_workgroup_sizes w/ new struct WorkgroupSizeCheck 2026-06-25 11:55:58 -07:00
Luo Zhihao c841633bb3 Bring transient attachment in line with webgpu spec (#9568) 2026-06-18 18:28:52 -07:00
Luo Zhihao 49102603b5 Add immediates to deno_webgpu (#9569) 2026-06-18 14:50:14 -07:00
Teoxoy ab33a724dc [wgpu-core] add query set initialization tracking
Vulkan, D3D12 and Metal require slots of query sets to
have been written prior to resolving them into a buffer.
2026-06-17 11:53:01 -07:00
Sam 019bce9139 Implement QuerySet::destroy (#9671)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-16 12:37:11 +02:00
Sam f308f06443 [core] Make ComputePassDescriptor and RenderPassDescriptor ser/de (#9666)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-15 15:08:13 +02:00
teoxoy 45f820a4ad disallow LoadOp::DontCare under STRICT_WEBGPU_COMPLIANCE 2026-06-03 23:36:32 +02:00
Teoxoy 31d22915be [indirect-draw-validation] don't attempt indirect draw validation for mesh shaders since it's not supported 2026-06-03 22:43:37 +02:00
Luo Zhihao 8b7e9edcdb Mask stencil clear value and reference value with 255 (#9607) 2026-06-02 17:09:58 +00:00
Luo ZhihaoandErich Gubler a7e0298dc5 Validate LoadOp and StoreOp are None for attachments without corresponding depth or stencil aspect (#9567)
Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
2026-05-29 11:28:50 -04:00
Andy Leiserson 61e76ee746 fix(core): Use more checked arithmetic, part 2b (#9425) 2026-04-16 14:27:01 +02:00
teoxoy c9c7359f5b deduplicate vertex buffer validation in is_ready 2026-04-14 17:20:15 -07:00
teoxoy a1b646243d converge on a single VertexState impl for both render passes and
render bundles

- render passes now defer setting vertex buffers to the start of a draw
  command (same as bundles)
- render bundles now cache vertex/instance limit calculations when
  setting the pipeline or when setting a vertex buffer (same as passes)
2026-04-14 17:20:15 -07:00
teoxoy 4bbed4074c add max_bind_groups_plus_vertex_buffers limit 2026-04-14 17:20:15 -07:00
teoxoy 2060683c29 make vertex buffer slots optional 2026-04-14 17:20:15 -07:00
atlv e6e5f5288c Bring immediate in line with webgpu spec (#9280) 2026-04-09 22:36:02 +00:00
Andy Leiserson acc5855e1f fix(core): Use more checked arithmetic, part 2 (#9363) 2026-04-09 15:21:20 -06:00
Inner DaemonsandAndreas Reich b5bd5aed7d Mesh shaders MSL writer (#8739)
* Single squashed commit

* Updated changelog

* Fixed stupid changelog thing

* If I have to do this one more fucking time I'm gonna lose it

* Removed some pub(super)'s

* Thing

---------

Co-authored-by: Andreas Reich <r_andreas2@web.de>
2026-04-07 17:26:22 +00:00
Elabajaba e8afd9a906 fix debug assertion not covering both parts of the debug statement (#9352) 2026-04-01 19:56:14 -06:00
Andy Leiserson 11db97cf1b fix(core): Use more checked arithmetic (#9357) 2026-04-01 15:23:21 -07:00