Commit Graph
1609 Commits
Author SHA1 Message Date
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
AdrianEddyandKevin Reid bd4d9a99b6 [WebGPU] Add the ability to interop with external textures (#9530)
Co-authored-by: Kevin Reid <kpreid@switchb.org>
2026-06-30 03:18:58 +00: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
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 0d734cb6de Stop using internal types in DownloadBuffer, and improve docs. (#9749) 2026-06-25 22:06:14 -04: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
Svyatoslav d835ad3a09 fix(vulkan): drop implementation panic for surface texture (#9678) 2026-06-25 08:56:13 -04:00
Andy Russell ccf079510f impl Debug for TextureBlitter (#9730) 2026-06-24 14:06:19 -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
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 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
Sam 208ce3b458 Add getters for type and count on QuerySet (#9672)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-06-15 15:03:32 +02:00
Inner Daemons 78b4dfd0cb Improve custom backend capabilities (#9605) 2026-06-12 17:09:42 -04:00
Nazar MokrynskyiandConnor Fitzgerald f82e9635e4 Increase recursion limits to please -Znext-solver (#9609)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-06-12 19:13:39 +00:00
Andy Leiserson 08b244df91 build: Exclude wgpu-core when building the WebGPU-backend samples (#9557) 2026-06-12 13:39:28 -04:00
5unekku fd34b485cb fix(webgpu): use unchecked_into for GpuCanvasContext (#9537) 2026-05-15 19:57:50 +00:00
Rob ecbed8b574 fix: provide default display handle for web canvas surface targets (#9476) 2026-05-12 17:44:43 -07:00
AdrianEddy 6208d80934 Add an explicit initial_state to create_texture_from_hal (#9496)
This is a breaking change for users of the low-level `create_texture_from_hal` API.
2026-05-12 16:59:56 -07:00
Misaki Kasumi 1546cca5ed Add StagingBelt::finish_and_recall_on_submit
Convenience that combines `finish` and `recall` by deferring the buffer
re-map via `CommandEncoder::map_buffer_on_submit`, so callers no longer
need an explicit `recall()` after submission.
2026-05-12 14:01:55 -07:00
N.E.C. bb83a5824a Allow empty buffer slices to be instantiated (#8505) 2026-05-03 22:40:29 +02:00
Tom Schuster d96a294bea WebGPU: Populate more AdapterInfo fields (#9058) 2026-04-15 16:29:52 -04:00
teoxoy 67b4f3c7e5 [wgpu] make vertex buffer slots optional 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
atlas 2e1cc4b1a6 feat: Move present from SurfaceTexture to Queue in public API 2026-04-14 10:51:03 +02:00
atlas 9a4e51d12a fix: Use non-fatal error handling for Surface::discard_texture 2026-04-14 10:51:03 +02:00
Tom Schuster 7143bbe882 Re-vendor WebGPU (#9090) 2026-04-12 20:00:46 +02:00
Erich Gubler 10ce22b2ea refactor!: subvert-rename dispatch* to dispatchWorkGroups* (#9362) 2026-04-11 20:58:22 +02:00
Jim Blandy bf8330c20b Make DRM support optional. (#9390) 2026-04-09 13:11:04 -07:00
Genna Wingert 2ac1faef05 feat(core): Add ComputePass::transition_resources (#9371) 2026-04-09 09:42:55 -04:00
Inner DaemonsandConnor Fitzgerald 8bc9fc1795 Add GLSL passthrough (#9064)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-04-08 22:03:34 -04:00
atlv ed4a28aef0 Make get_mapped_range return a Result rather than panicking (#9281) 2026-04-08 21:22:00 -04: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
Emil Ernerfeldt fe725d6df0 Return helpful error when WebGPU is disabled (#9319) 2026-04-07 18:18:35 +02:00
Dylan Blokhuis 438ed2a7ce feat(core): support building custom geometry BLAS (#9290) 2026-04-01 20:55:22 +13:00
TornaxO7 514cff91db refactor: export TextureChannel (#9349)
* refactor: export `TextureChannel`

* chore(CHANGELOG): add entry for `wgpu::TextureChannel`

* format: apply `cargo fmt`
2026-03-31 13:09:51 -04:00
Andy Leiserson da19f17121 fix(core): Add validation in create_render_bundle_encoder (#9289) 2026-03-27 14:33:10 +01:00
TornaxO7 098aaae40a Extend texture tests with exhaust (#9172) 2026-03-24 13:52:54 -06:00
Andy LeisersonandTeodor Tanasoaia 55b45559a7 feat(core): Limit bucketing
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com>
2026-03-23 18:25:15 -07:00
Andy Leiserson f9b4cbf365 refactor(tests): Add NoopBackendOptions::enabled() constructor 2026-03-23 18:25:15 -07:00
Timo Kösters df0116137f Fix typo (#9279) 2026-03-23 00:46:17 -04:00
Connor Fitzgerald 06e2c7d24a Release v29 (#9260) 2026-03-18 20:23:53 -04:00
Andreas ReichandConnor Fitzgerald e4dae053c0 Change get_current_texture output to a unified enum (#9257)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-03-18 22:12:58 +00:00
Erich Gubler c1618ce367 feat(webgpu): recognize float32-blendable feature (#9103) 2026-03-16 19:20:06 +00:00
Chris Biscardi 252ef09792 move WriteOnly to wgpu-types (#9236)
* move WriteOnly to wgpu-types

* un-pub mod, because pub use * is already in play

* fixup doctests

* link to wgpu items
2026-03-16 08:37:17 -04:00
Kevin Reid a97a49d1d6 Replace &mut [u8] access to mapped buffers with WriteOnly.
When accessing a buffer for writing, do not expose (or internally
create) any `&'a mut [u8]` references to that memory, so as to avoid
exposing write-combining memory that might visibly misbehave in atomic
operations. Instead, expose the new pointer type `WriteOnly<'a, [u8]>`
which offers only write operations. This can be sliced and reborrowed,
allowing it to be used in most ways which `&mut [u8]` would be,
hopefully with near-zero overhead.

This pointer type might also allow users to opt in to uninitialized
memory for performance, while confining the consequences to GPU UB
rather than Rust UB. However, that is a future possibility and is not
implemented in this commit other than as a consideration in defining the
API of the `WriteOnly` type.

This change is not a complete solution to the problem of write-combining
memory because it is still possible to read after writing by calling
`get_mapped_range()` after `get_mapped_range_mut()`. However, that is
solvable separately, perhaps with a barrier or a validation change,
and is not particularly coupled with this part of the solution.
2026-03-11 16:58:48 -04:00