Commit Graph
10160 Commits
Author SHA1 Message Date
Mads Marquart 80871cfc01 Use objc2-metal with metal naming scheme
To keep the diff smaller and easier to review, this uses a temporary
fork of `objc2-metal` and `objc2-quartz-core` whose methods use the
naming scheme of the `metal` crate.

One particular difficult part with this is that the `metal` crate has
several methods where the order of the arguments are swapped relative
to the corresponding Objective-C methods.

This includes most perilously the following, since these have both an
offset and an index argument, both of which are integers:
- `set_bytes`
- `set_vertex_bytes`
- `set_fragment_bytes`
- `set_buffer`
- `set_vertex_buffer`
- `set_fragment_buffer`
- `set_threadgroup_memory_length`

But also:
- `set_vertex_texture`
- `set_fragment_texture`
- `set_sampler_state`
- `set_vertex_sampler_state`
- `set_fragment_sampler_state`
2026-01-27 16:28:08 -08:00
Erich Gubler b042784fa2 test(cts): silence advice.detachedHead for shallow CTS clone (#8934) 2026-01-27 17:25:56 -05:00
Erich Gubler 222174d044 style(xtask): trim trailing whitespace in CLI help (#8933) 2026-01-27 21:50:43 +00:00
Andy Leiserson 965b7cbe79 feat(deno): Associate external memory with GPUDevice
Enable some tests that previously OOMed in CI.
2026-01-27 13:11:40 -08:00
Andy Leiserson 77c614c628 fix(deno): Don't leak wgpu queues when they are never accessed from JS 2026-01-27 13:11:40 -08:00
Vecvec cfc655b4d2 [naga] Move and rename back/spv/ray.rs -> back/spv/ray/query.rs (#8916) 2026-01-27 14:50:23 -05:00
mandryskowski 2ef10891d2 Fix constant evaluation of sign(0.0f) (#8942) 2026-01-27 19:41:10 +00:00
renovate[bot] d8cfb36e71 chore(deps): update cargo.lock (#8929)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-27 18:50:52 +00:00
Andy Leiserson d936020e6f test(cts): Make the CTS quieter by default 2026-01-27 10:18:57 -08:00
Andy Leiserson 01d6ab8868 docs(cts): note ! prefix for negation of test selection 2026-01-27 10:18:57 -08:00
Andy LeisersonandErich Gubler ff7fe29ab4 chore(docs): Tidy changelog (#8919)
* chore(docs): Tidy changelog

---------

Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
2026-01-26 23:00:50 +00:00
renovate[bot] b8e9f7a73a chore(deps): update crate-ci/typos action to v1.42.2 (#8927)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-26 15:56:31 -05:00
Mads Marquart 8ffa34a9d4 [metal] Use raw-window-metal to do layer creation (#6210)
This removes the manual implementation introduced in 7b00140.
2026-01-26 12:45:03 -08:00
renovate[bot] 2002283cce chore(deps): update cts digest to 0fad1ec (#8926)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-26 13:28:10 -05:00
Falk Woldmann Lu cbf9ec087e Add missing crate link 2026-01-26 13:21:46 -05:00
Falk Woldmann Lu 171617d00a Use LazyLock for std environments and OnceBox for no_std 2026-01-26 13:21:46 -05:00
Inner DaemonsandErich Gubler 4d11f5f8de Made traces use .metal extension instead of .msl (#8880)
* Changed msl snapshots to use .metal extension

* Made traces use `.metal` extension instead of `.msl`

* Added changelog entry

---------

Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
2026-01-26 17:25:43 +00: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
Andy Leiserson 6495ef3f9d fix(naga): Calculate 1D distance using abs (#8903) 2026-01-26 13:32:45 +01:00
Teodor Tanasoaia 723cb5db0c [d3d12] fix possible crash on GPUs that only support SM5.1 (#8918) 2026-01-26 10:50:03 +01:00
Noah d0c9044e42 Limits doc: fix typo (#8914) 2026-01-22 21:52:59 -05:00
Andy Leiserson 6b5a416865 fix(naga): Use wrapping arithmetic for u32 const eval (#8912)
Fixes one part of #8900
2026-01-22 14:50:37 -08:00
Andy Leiserson 046a1b4ce5 feat(deno): implement WGSLLanguageFeatures (#8884) 2026-01-22 10:42:01 -08:00
renovate[bot] 53468815b1 chore(deps): update cts digest to e98e602 (#8890) 2026-01-22 09:57:28 -08:00
renovate[bot] 6472994ef6 chore(deps): update cargo.lock (#8891)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-21 11:28:32 -05:00
Andy Leiserson 5c100aea5a chore(deno): Export GPUPipelineError (#8885) 2026-01-21 17:27:19 +01:00
Jan eaffaf2024 [glsl-in] fix missing side effects from sequence expressions (#8787) 2026-01-20 13:07:46 +01:00
Andy Leiserson 8636195cb7 Implement tracing for derived BGLs (#8855) 2026-01-19 10:41:22 +01:00
Andy Leiserson 2d56ec6cdc fix(naga wgsl-out): Emit wgpu_cooperative_matrix extension when needed 2026-01-19 10:38:47 +01:00
Andy Leiserson b40c01a018 fix(naga wgsl-in): Add checks for wgpu_cooperative_matrix extension 2026-01-19 10:38:47 +01:00
Andy Leiserson b1bdabda53 refactor(naga wgsl-in): Use a helper to check enable extensions 2026-01-19 10:38:47 +01:00
Andy Leiserson eb158a4a54 Alphabetize test.lst; add fail.lst and skip.lst (#8778) 2026-01-16 20:30:26 -07:00
Andy Leiserson 75312ee46f chore(docs): Update pull request template (#8874) 2026-01-16 12:07:15 -05:00
Inner Daemons 48ba9812c2 Add support for SPV_KHR_non_semantic_info (#8827)
* Upload

* Added changelog entry

* More comments

* Updated changelog to reflect SUPPORTED_EXT_SETS being removed
2026-01-16 03:06:32 +00:00
Vecvec c97fe3e7c4 [HLSL] Make ray queries safer. (#8763) 2026-01-15 21:35:18 -05:00
switch b0a043a7a0 staging belt: allow creation with custom buffer usages (#8580) 2026-01-15 20:23:02 -05:00
atlvandConnor Fitzgerald 4a3526a745 Add per-vertex attribute support to vulkan, spir-v and wgsl. (#8821)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-01-16 01:04:06 +00:00
atlv fc9060f510 BarycentricNoPerspective (#8852) 2026-01-15 19:42:44 -05:00
Vecvec bdc8f618c1 Use invalidate not flush when reading back from device. (#8838) 2026-01-15 15:25:46 -05:00
Ivor Wanders 1a47bf8b82 Improve documentation for validation of the counts field in BindGroupLayoutEntry. (#8795) 2026-01-15 14:50:38 -05:00
Andy Leiserson 90197afd54 Round max_vertex_buffer_array_stride down to a multiple of 4 (#8847)
Fixes #8846

Note that the CTS test in the issue is already enabled
(`webgpu:api,operation,vertex_state,correctness:non_zero_array_stride_and_attribute_offset:*`).
It seems the failure only appears on specific hardware/drivers.
2026-01-15 11:28:18 -08:00
atlv 993448ab2c Add Limits::or_worse_values_from (#8870) 2026-01-14 11:28:50 -08:00
Luo Zhihao 2b8b5f7cdc Fix typo in docs regarding memory init tracker (#8858) 2026-01-12 09:26:03 -05:00
renovate[bot] 87a3fda0d1 chore(deps): update crate-ci/typos action to v1.42.0 (#8861)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-12 09:11:42 -05:00
renovate[bot] b7ccd3323e chore(deps): update cts digest to 4637ae6 (#8860)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-12 09:11:27 -05:00
renovate[bot] 5da230ad7f chore(deps): update jamesives/github-pages-deploy-action action to v4.8.0 (#8862)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-12 09:11:04 -05:00
renovate[bot] 7f20fcf6a1 chore(deps): update cargo.lock (#8863)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-12 09:10:47 -05:00
cryvosh 1d520a098d Fix workgroupUniformLoad returning atomic types (#8791) 2026-01-10 12:21:48 -08:00
Andy Leiserson bed71efe59 Add AGENTS.md and skills (#8839) 2026-01-09 22:49:10 -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