Commit Graph
10171 Commits
Author SHA1 Message Date
teoxoy 3c797dee68 rename postfix to component_or_swizzle_specifier 2026-01-28 12:00:35 +01:00
teoxoy 7d653d9c08 update lhs_expression to be in line with the spec 2026-01-28 12:00:35 +01:00
teoxoy 630e27a188 remove peek_ident_with_span 2026-01-28 12:00:35 +01:00
teoxoy 21972dd38f remove next_scalar_generic 2026-01-28 12:00:35 +01:00
teoxoy 6bcf0f2d28 rename general_expression to expression 2026-01-28 12:00:35 +01:00
teoxoy 8f49329f3c rename assignment_statement to variable_updating_statement 2026-01-28 12:00:35 +01:00
teoxoy fb3ce224c1 [wgsl] rename type_decl to type_specifier 2026-01-28 12:00:35 +01:00
teoxoy df60dd008c add optionally_typed_ident fn 2026-01-28 12:00:35 +01:00
Andy Leiserson 0e558f27ef fix(naga): Support dual-source blending for SPIR-V shaders (#8865) 2026-01-28 09:19:57 +01: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
Mads Marquart 4104aa1320 Use normal objc2 naming scheme 2026-01-27 16:28:08 -08:00
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