72 Commits
Author SHA1 Message Date
VecvecandConnor Fitzgerald 9e744954f7 [wgpu-core] Ray tracing pipelines (#10144)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-11-05 19:20:32 +00:00
Teodor Tanasoaia a979c33dcd Return SubmissionIndex only if submissions succeed (#10218) 2026-10-27 13:16:23 +00:00
Kevin Reid 60036cdc0a Fix Cargo lint from Rust 1.100 (#10576) 2026-10-14 00:35:08 +00:00
Sam 78fa6152cc Revert part of #10115 by removing result from create_render_bundle_encoder and reimpl content validation in deno (#10179) 2026-08-31 10:21:22 +02:00
Sam 6710991814 Implement spec compilant erroring of create_render_bundle_encoder (#10115) 2026-08-25 17:58:57 +02:00
Connor Fitzgerald d4359d7494 Use edition 2024 in standalone examples (#10139) 2026-08-22 03:38:36 +00:00
Sam feab2f79ef Add DeviceDescriptor::default_queue: QueueDescriptor to support setting label to queue (#10109)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-08-19 10:06:10 +00:00
Luo ZhihaoandErich Gubler 7a83bc7650 Re-vendor WebGPU bindings (#10034)
Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
2026-08-17 11:34:53 +00:00
sagudev 0a926cf134 write_staging_buffer should consume DispatchQueueWriteBuffer
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-08-12 14:59:54 +02:00
renovate[bot] d45fdcd11a Update Rust crate pollster to v1 (#9996)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-03 11:08:39 +00:00
Kevin Reid 888e749799 Rename TextureFormat::is_srgb() to has_srgb_suffix(). (#9758) 2026-07-16 20:29:00 +00:00
Nick Babcock 4e58833072 Add wasm64 backend support for the web
This commit:

- Bumps glow to 0.18 which gains support for wasm64
- Updates cfg gates from `target_arch = "wasm32"` to `target_family =
"wasm"`

This commit, unfortunately, does not touch upon example code as that
brings in getrandom 0.3 (0.4 supports wasm64) through flume and
futures-lite
2026-07-15 09:15:33 -07:00
Connor Fitzgerald 8bf3e5ff4a Update to v30 (#9790) 2026-07-01 17:07:34 -04: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
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
atlas 2e1cc4b1a6 feat: Move present from SurfaceTexture to Queue in public API 2026-04-14 10:51:03 +02:00
atlv ed4a28aef0 Make get_mapped_range return a Result rather than panicking (#9281) 2026-04-08 21:22:00 -04:00
TornaxO7andAndreas Reich 9557c6e371 fix(02_hello_window): drop texture if surface texture is suboptimal (#9384)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2026-04-08 17:27:38 +02:00
countgitmickandcountgitmick 5d03e09b54 fix(examples): use pod_collect_to_vec for mapped buffer reads (#9378)
Co-authored-by: countgitmick <countgitmick@users.noreply.github.com>
2026-04-08 11:26:44 -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
Marijn Suijten 35db26b2c6 Make HasDisplayHandle optional in WindowHandle (#8782) 2026-03-10 11:36:12 -04:00
Emil Ernerfeldt 12b9d4996b macOS: Fix one-second delay when switching a wgpu app to the foreground (#9141) 2026-03-08 23:17:13 +01:00
Teodor Tanasoaia e114d2f0a7 Add support for gaps in bind group layouts & update relevant validation (#9034)
* [wgpu-core] add support for optional BG & BGL entries

* [wgpu] allow gaps in bind group layouts

And allow unbinding in the web backend.

* adapt tests

* add changelog entry

* [wgpu] remove generic from `PipelineLayoutDescriptor`
2026-02-25 19:47:36 +01:00
Connor Fitzgerald 04746e747e Implement 3 part MSRV policy (#8999) 2026-02-08 17:04:36 -05:00
Erich Gubler 487afd21e4 chore: update REPO_MSRV 1.92 → 1.93 2026-01-28 15:42:38 -05:00
Sam 11666170b4 expose adapter info on device (#8807)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-01-09 13:50:49 -07:00
Marijn Suijten 234ec66152 Allow optional RawDisplayHandle in InstanceDescriptor (#8012) 2025-12-23 14:53:04 -05:00
Dzmitry Malyshau bff1f6d095 (Naga) Cooperative Matrix Support (#8251) 2025-12-22 13:14:57 -05:00
Connor Fitzgerald 68c74ff242 Update versions 2025-12-17 22:05:09 -05:00
Connor Fitzgerald daf69de67a Bump MSRV to 1.92 for real (#8723) 2025-12-17 17:12:23 +01:00
Connor Fitzgerald e52e8336b0 Bring immediate api in line with spec (#8724) 2025-12-16 13:13:09 +01:00
Connor FitzgeraldandKevin Reid b94c194bc9 Convert error scopes to use thread-local guards (#8595)
Co-authored-by: Kevin Reid <kpreid@switchb.org>
2025-12-02 19:11:55 +00:00
Connor Fitzgerald 5895de82b5 Rename push constants to immediates (#8586) 2025-12-01 15:20:02 +01:00
ad0f3111b7 Add multiview limits and tests (#8206)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
Co-authored-by: Magnus <85136135+SupaMaggie70Incorporated@users.noreply.github.com>
2025-11-01 12:08:15 +00:00
Robin CramerandAndreas Reich 4652ea4189 Changed enumerate_adapters to be able to work with custom backends (#8230)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2025-10-06 19:27:23 +00:00
Connor Fitzgerald 482a983e10 Release v27 (#8287) 2025-10-01 19:36:18 -04:00
Andreas Reich 333f811e9c Rework wgpu::PollType to only two enum variants (#8285) 2025-10-01 18:08:07 -04:00
Connor Fitzgerald 8d1f4bb5f2 Require token for experimental features (#8163) 2025-08-29 15:43:27 -04:00
Kevin Reid ea8315e28e Change uncaptured error handler pointer type from Box to Arc.
This will be necessary for the next change.
2025-08-13 16:26:46 +01:00
SupaMaggie70Incorporated 074c0e7191 Add mesh shading api to wgpu & wgpu-core (#7345) 2025-07-24 20:58:56 -04:00
Jamie Nicol acfa8c5776 [wgpu-core] Add ExternalTexture type to wgpu-core
`ExternalTexture` will form the basis of wgpu's implementation of
WebGPU's `GPUExternalTexture`. [1]

The application will be responsible for creating `Texture`(s) and
`TextureView`(s) from the external texture source and managing their
lifecycle. It may have a single RGBA texture, or it may have multiple
textures for separate Y and Cb/Cr planes. It can then create an external
texture by calling `create_external_texture()`, providing the texture
views and a descriptor. The descriptor provides the following required
information:

  * Whether the texture data is RGBA, or multiplanar or interleaved
    YCbCr.
  * The purpoted size of the external texture, which may not match the
    actual size of the underlying textures.
  * A matrix for converting from YCbCr to RGBA, if required.
  * A transform to apply to texture sample coordinates, allowing for
    rotation and crop rects.

The external texture stores a reference to the provided texture views,
and additionally owns a `Buffer`. This buffer holds data of the type
`ExternalTextureParams`, and will be provided as a uniform buffer to
shaders containing external textures. This contains information that
will be required by the shaders to handle external textures correctly.

Note that attempting to create an external texture will fail unless the
`Feature::EXTERNAL_TEXTURE` feature is enabled, which as of yet is not
supported by any HAL backends.

Additionally add the relevant API to wgpu, implemented for the
wgpu-core backend. The web and custom backends are unimplemented.

[1] https://www.w3.org/TR/webgpu/#gpuexternaltexture
2025-07-22 15:38:15 -07:00
Connor Fitzgerald ff0de91ad7 Bump REPO_MSRV to 1.88 (#7960) 2025-07-17 13:00:40 -04:00
Connor Fitzgerald 03f1b535ca Bump version to v26 2025-07-09 20:38:11 -04:00
VecvecandConnor Fitzgerald 73eb83ded1 [wgpu] Blas compaction (#7285)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2025-06-11 21:40:10 -04:00
Raphael Hetzel 0d569d5550 Optional web-specific deps for wasm32 (#7565) 2025-05-29 22:26:01 +00:00
Connor Fitzgerald 267f14632f Reduce versions to minimum required 2025-04-27 18:34:52 +02:00
Kevin Reid 9727e75ad7 Update Cargo.toml to direct-minimal-versions consistency. 2025-04-25 14:40:12 -04:00
teoxoy 5ecc48d494 add RenderPassColorAttachment::depth_slice 2025-04-25 12:39:45 +02:00