2594 Commits
Author SHA1 Message Date
Abel Lucas 3302d5072d wgpu-core: a destroyed buffer that is mapped keeps its raw buffer until it drops
`Buffer::destroy` freed the raw buffer of a buffer that was still mapped. So did
`release_gpu_resources`, which runs `destroy` on every buffer when a device is lost or destroyed.
The mapped pointer, and a `BufferView` over it, then read freed memory.

A buffer that is mapped when it is destroyed now keeps what `destroy` took from it, and frees it
when the buffer drops. The buffer is destroyed in every other way: it has no raw buffer to use, and
`unmap` still reports it as destroyed.
2026-10-26 19:17:54 +01:00
Andy Leiserson a0bd44d7ff [v30] Manual Send and Sync for Hub and Command{Encoder,Buffer} (#10225) 2026-09-04 16:30:59 -04:00
John Billings 2508e37a5e fix(core): Free prepared ids that are never assigned (#10184) 2026-09-02 16:16:36 -07:00
Nazar MokrynskyiandErich Gubler 73a7e97981 Fix recursion limits with next solver (#9953)
Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
2026-08-27 03:17:32 -06:00
teoxoy aa2b7907c0 [core] filter native-only features and limits if
`STRICT_WEBGPU_COMPLIANCE` is set
2026-07-01 14:43:44 -04:00
teoxoy 995ee7b3f1 add Limits::max_buffers_and_acceleration_structures_per_shader_stage 2026-07-01 14:43:44 -04: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
Andy Leiserson 0cc48c829e fix(core): Track initialization status of 3D textures (#9765) 2026-07-01 11:51:59 +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 74ae0435e6 [core] Add IDed RenderBundleEncoder methods on Global (#9778)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-01 11:14:54 +02:00
Sam afbab7b298 [core] Handle ended in RenderBundleEncoder (#9777)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-01 10:25:10 +02:00
Sam 22c6cb18d4 [core] Add support IDed ComputePasses in Global (#9776)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-30 16:13:50 +02:00
Sam 983106f8cf [core] Move validity into Arc<PipelineLayout> (#9775)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-30 16:10:37 +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 e9aa030587 [core] Move validity into Arc<BindGroupLayout> (#9764)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-30 15:24:38 +02:00
Sam d01aa31d69 [core] Move validity into Arc<ComputePipeline> (#9762)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-30 12:11:10 +02:00
Stuart Parmenter cf2dbfd40f Add display HDR query (Surface::display_hdr_info): DX12, Vulkan, Metal, Web (#9739) 2026-06-29 18:13:31 -04: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
Stuart Parmenter 3fb225a9c6 Add surface color-space selection (HDR output): Vulkan, DX12, Metal, WebGPU (#9658) 2026-06-26 03:52:05 +00:00
Kevin Reid 156741bcb2 Add Debug implementations and missing_debug_implementations lint. (#9744) 2026-06-25 18:57:47 -04:00
VecvecandConnor Fitzgerald 743ac1f084 Hal ray tracing pipelines (#9464)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-06-25 18:53:10 -04:00
Sam 3c43be420d trace: Make action_to_owned work on any Action (#9743)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-25 14:28:32 -07:00
Erich Gubler 7e0957351c refactor(core): consolidate WorkgroupSizeCheck usage 2026-06-25 11:55:58 -07: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
Erich Gubler 572a572267 refactor(core): use array repeat notation for invocation limits args. 2026-06-25 11:55:58 -07:00
Andy Leiserson 0c270be636 refactor(core): Improve registry storage assertions 2026-06-25 11:14:46 -07:00
Andy Leiserson baabb1a1e1 refactor(core): Add const TYPE to trait Marker 2026-06-25 11:14:46 -07:00
Andy Leiserson c87b468180 chore(core): Remove obsolete comment 2026-06-25 11:14:46 -07:00
Sam b76a432a27 [core] Move Fallible into Arc<Texture> (#9718)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-25 19:27:44 +02:00
Svyatoslav d835ad3a09 fix(vulkan): drop implementation panic for surface texture (#9678) 2026-06-25 08:56:13 -04:00
Andy Leiserson 7d549d9d2f fix(webgl): Add destination of copy_external_image_to_texture to PendingWrites (#9727) 2026-06-24 14:12:06 -04:00
Sam 662116f98f [core] make wgc::RenderBundleEncoder like Passes (with methods on self and global) (#9712)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-24 14:20:22 +02:00
Sam ed57d2e82a [core] Use label field of TextureDescriptor (#9714)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-23 09:18:24 -04:00
Andy Leiserson a4d29e47c1 Release COMMAND_BUFFER_DATA before encoding commands 2026-06-22 13:58:59 -07:00
Andy Leiserson f82196a0f5 Print more detail for lock release order violations 2026-06-22 13:58:59 -07:00
Andy Leiserson d1630d8493 Use unique lock ranks for concurrently-accessed registries 2026-06-22 13:58:59 -07:00
d21c0d08ef Migrate from taplo to tombi for TOML CI (#9694)
Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
Co-authored-by: Kevin Reid <kpreid@switchb.org>
2026-06-19 13:53:49 +00: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
Sam c29a05d6dd fix(core): Deferred query set destruction (#9704)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-18 14:39:08 -07:00
Andy Leiserson e55f061770 fix(core): Align limit when clamping at u32 for indirect validation (#9698) 2026-06-18 15:24:47 +02:00
Andy Leiserson 336cda7372 fix(core): Deferred query set destruction (#9697) 2026-06-18 14:31:16 +02: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
teoxoy d830aab910 add close_and_insert_at to InnerCommandEncoder 2026-06-17 11:53:01 -07:00
Sam f9b4657c9f [tracing] Rename Destroy* -> Drop* and Free* -> Destroy* to match wgc and spec (#9691)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-17 15:24:22 +00: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
5unekkuand5unekku 9ffe3c64f4 wgpu-core: use partition_point in triage_submissions (O(n) → O(log n)) (#9631)
Co-authored-by: 5unekku <@5unekku>
2026-06-15 16:11:24 -04:00
Inner Daemons 1c42a95e37 Add naga-types crate (#9434) 2026-06-15 16:11:06 +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