Commit Graph
363 Commits
Author SHA1 Message Date
Sam 4fb3ccaa77 [core] Do not forget to fire user callback in configure (#10686)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-10-22 06:42:02 +00:00
Andy Leiserson eddf0b4c8f Fix a wasm cfg condition (#10577) 2026-10-13 03:10:04 +00:00
KOGA MitsuhiroandAndy Leiserson 889eea9505 fix(types): Exclude SURFACE_VIEW_FORMATS from compliant() (#10425)
Co-authored-by: Andy Leiserson <aleiserson@mozilla.com>
2026-10-13 01:54:39 +00:00
superroket169 7b38991c62 test: move tests of the small crates into #[cfg(test)] modules (#10467) 2026-10-05 16:00:14 +00:00
Alex Andreba 67299ee4a6 Added an InstanceBuilder to wgpu_core (#10204) 2026-09-27 05:54:39 +00:00
Sam 6293e039ca [core] "consume" adapter on first succesful request_device if STRICT_WEBGPU_COMPLIANCE (#10444)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-09-24 13:34:16 +00:00
Sam cddb2f5d80 Ignore timeouts on wasm (#10348)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-09-15 11:13:53 +00:00
Sam 91fe2f9593 Implement unconfigure in wgc and use it for configure (#10296)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-09-11 13:46:04 +02:00
Erich Gubler 9920c99c1d feat(core): add Limits::max_storage_{buffers,textures}_in_{vertex,fragment}_stage 2026-09-07 07:02:37 -04: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
Andy Leiserson 0770264ea0 refactor(core): Rename HUB_OTHER lock rank to INSTANCE_DEVICES 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 955ce1b996 [core] Expose more resource methods
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-08-12 14:59:54 +02:00
Sam 45eda065c2 [core] Wrap Instance in Arc and store it in Adapter (#9956)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-08-12 11:28:48 +02:00
Andy Leiserson 7a655581ff feat(core): Expose descriptor validation separately from request_device (#9967) 2026-07-30 18:18:49 +00:00
Sam 4e3117a2e5 [core] Always return surface wrapped in arc (#9916)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-25 20:39:45 +02:00
Sam 27597cf960 [core] Inherit InstanceFlags in Device via Adapter (#9915)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-25 20:34:55 +02:00
Sam 43b7ff9220 [core] Move Device::configure_surface to Surface::configure (#9898)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-20 17:31:53 -07:00
Kevin Reid 888e749799 Rename TextureFormat::is_srgb() to has_srgb_suffix(). (#9758) 2026-07-16 20:29:00 +00:00
Sam 9e7ae880cd [core] Implement poll_all_devices on Instance (#9829)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-07 19:25:01 +02:00
Sam f16cf047f9 [core] Make Global methods thin in instance (#9827)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2026-07-07 16:52:17 +02: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
teoxoy aa2b7907c0 [core] filter native-only features and limits if
`STRICT_WEBGPU_COMPLIANCE` is set
2026-07-01 14:43:44 -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
Luo Zhihao c841633bb3 Bring transient attachment in line with webgpu spec (#9568) 2026-06-18 18:28:52 -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
teoxoy 6e8d0bd149 add tests for adapter_allowed 2026-06-03 23:36:32 +02:00
teoxoy 939776d5dc check that all limits are at least as high as default limits under
`STRICT_WEBGPU_COMPLIANCE`
2026-06-03 23:36:32 +02:00
teoxoy b61ddc1211 check alignment limits are powers of 2 2026-06-03 23:36:32 +02:00
teoxoy 6aa13649e4 filter out adapters with missing downlevel flags under
`STRICT_WEBGPU_COMPLIANCE`
2026-06-03 23:36:32 +02:00
Teoxoy bf1b57d47f [indirect-draw-validation] make sure we don't encounter u64 offsets in indirect draw validation 2026-06-03 22:43:37 +02:00
Jim Blandy bf8330c20b Make DRM support optional. (#9390) 2026-04-09 13:11:04 -07: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
Erich Gubler 70b8343e06 refactor(core): rename Instance::name to _name (#8957) 2026-03-11 17:29:08 +00:00
Marijn Suijten 35db26b2c6 Make HasDisplayHandle optional in WindowHandle (#8782) 2026-03-10 11:36:12 -04:00
Erich Gubler 9bc127f128 chore: update CORE_MSRV to 1.90 (#8943)
New cases for some Clippy lints pop up as part of this upgrade that
cannot be done before, listed below. Yuck!

- `clippy::manual_is_multiple_of`
- `clippy::missing_const_for_fn`
- `clippy::useless_nonzero_new_unchecked`
2026-01-27 19:37:10 -05:00
pinandErich Gubler 8ad8a820c6 Add basic NetBSD support (#8695)
* Add basic NetBSD support

  - closes https://github.com/gfx-rs/wgpu/issues/8541
  - replaces https://github.com/gfx-rs/wgpu/pull/8679

  ```
  Tests:
  Summary [ 149.522s] 469 tests run: 463 passed, 6 failed, 0 skipped
  FAIL [ 0.095s] naga::naga snapshots::convert_snapshots_spv
  FAIL [ 0.387s] wgpu-benchmark::bench/wgpu-benchmark Computepass Encoding
  FAIL [ 0.386s] wgpu-benchmark::bench/wgpu-benchmark Device::create_bind_group
  FAIL [ 0.378s] wgpu-benchmark::bench/wgpu-benchmark Device::create_buffer
  FAIL [ 0.389s] wgpu-benchmark::bench/wgpu-benchmark Renderpass Encoding
  FAIL [ 0.075s] wgpu-test::wgpu-validation api::instance::multi_instance::multi_instance
  ```

* Exclude Vulkan and DRM surface paths on NetBSD

  Match platform support and avoiding cfg mismatches between wgpu and wgpu-core.
(with help from LLM)

---------

Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
2026-01-26 16:27:57 +00: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
Teodor Tanasoaia 5c76751104 [d3d12] add support for optional adapter telemetry (#8576) 2025-12-16 12:34:29 -05:00
OpsticandConnor Fitzgerald f0209e3db8 Add support for transient textures on Vulkan and Metal (#8247)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2025-10-16 19:50:01 +00:00
Connor Fitzgerald 8d1f4bb5f2 Require token for experimental features (#8163) 2025-08-29 15:43:27 -04:00
Lucas Abel b8c462ac31 [core] fix missing applies of DISCARD_HAL_LABELS (#7991) 2025-07-23 12:06:42 -04:00
Connor Fitzgerald ff0de91ad7 Bump REPO_MSRV to 1.88 (#7960) 2025-07-17 13:00:40 -04:00
Connor Fitzgerald 1ed61877b5 Remove wgpu_core::hal_api::HalApi 2025-07-16 15:10:00 -04:00
Erich Gubler 7ff0bd784e fix!: remove WebGpuError impl. for Request{Adapter,Device}Error 2025-06-30 10:58:56 -04:00
Erich Gubler 964c5bbf4c feat(core): impl WebGpuError for API errors 2025-06-30 10:58:56 -04:00
Jim Blandy 9046b439d7 Add more logging to Instance::device_request_adapter. (#7786) 2025-06-11 08:36:15 +00:00
teoxoy 3b72d59a3c make memory pressure detection optional and configurable 2025-04-22 09:21:27 +02:00
Bruce Mitchener dde9422114 Fix build with profiling enabled (#7509) 2025-04-11 00:34:05 +00:00