Commit Graph
1131 Commits
Author SHA1 Message Date
saripalli shanmukha kiran sagar 6fbbb0fbb7 naga: add take() method to Arena and UniqueArena (#9611) 2026-06-08 15:02:23 -07:00
AdrianEddyandAndreas Reich c003fc45e2 feat(gles): add support for 16-bit normalized texture formats and color attachments (#9601)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2026-06-07 09:02:33 +00:00
Dragoy 66d997113f naga: include OpAtomicCompareExchange result access in emitted range (#9621) 2026-06-03 20:03:55 +02:00
Jim BlandyandAndreas Reich 498e746ad2 [naga msl-out] Remove unnecessary pub from Writer fields. (#9395)
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2026-05-27 16:13:17 +00:00
kwillemsenandKoen Willemsen ce445e882e Expose notes from wgsl::ParseError (#9572)
Co-authored-by: Koen Willemsen <Koen.Willemsen@materialise.be>
2026-05-22 10:01:01 -04:00
Connor Fitzgerald d88b06caca Fix type resolution issue in GL push constants (#9116) 2026-05-20 08:19:51 -07:00
Andy Leiserson 4c1ea47ea2 fix(dx12): Fix textureNum{Levels,Layers,Samples} functions (#9542) 2026-05-13 17:51:15 +02:00
Dzmitry Malyshau 1781d73b40 msl: fix cooperative matrix loading semantics (#9451) 2026-05-12 14:20:06 -07:00
Andy Leiserson 20d6629185 fix(naga): Don't panic on oversize types (#9516) 2026-05-11 18:58:12 +02:00
teoxoy 786b8b11da [hlsl] handle matCx2<f16> in the uniform address space properly 2026-05-07 20:22:15 +02:00
teoxoy 22720cf121 fix reading from uniform variables of type array<matCx2<T>, N> 2026-05-07 20:22:15 +02:00
JMS55 868eb17098 SHADER_I16 full support (#9412) 2026-04-24 20:49:41 -04:00
Vecvec 56e4a389dd [spv-out] ray tracing pipelines (#9085) 2026-04-20 17:02:49 +02:00
Andy Leiserson e855a96b48 fix(naga): Accept trailing comma in 1-arg @interpolate 2026-04-17 11:50:51 -07:00
Andy Leiserson b051a87e3e fix(naga): Require explicit flat interpolation for integer shader I/O 2026-04-17 11:50:51 -07:00
Andy Leiserson 75ed5df337 test: Add snapshot test for GLSL interpolation spec 2026-04-17 11:50:51 -07:00
AliandConnor Fitzgerald c040694c94 fixed mat2xc alignment in spv (#9369)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-04-15 20:52:49 +00:00
Vecvec f6d9a1dbaa [msl-out] Switch to intersection queries (#9304) 2026-04-15 16:01:28 -04:00
atlv 8dce18fc56 Rename PerVertex to WgpuPerVertex for consistency (#9416) 2026-04-14 12:14:54 -04:00
Jim Blandy fccadd6f07 [naga wgsl-in] Restore accidentally removed recursion depth check. (#9424) 2026-04-14 09:22:29 +02:00
AliandErich Gubler 51faa6fd87 Implements #8875: Using binding_array should require an enable extension (#9298)
Co-authored-by: Erich Gubler <erichdongubler@gmail.com>
2026-04-11 04:52:44 +00:00
Neel Tamtam 7159dfcc14 fix: restore changelog entry and remove redundant atomic load guard (#9400) 2026-04-10 14:17:15 -04:00
atlv e6e5f5288c Bring immediate in line with webgpu spec (#9280) 2026-04-09 22:36:02 +00:00
Neel TamtamandConnor Fitzgerald f0201c9cc3 Fix: Polyfill atomic load/store correctly in GLSL/HLSL (#9242) (#9387)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-04-09 01:49:19 +00:00
Inner Daemons 948b1a6c66 Remove unnecessary object data threadgroup barriers in MSL writer (#9396) 2026-04-08 16:05:17 -07:00
Ali 9c49f92347 fix fragment ignoring reserved keywords in metal (#9379) 2026-04-07 16:15:24 -06:00
renovate[bot]andAndreas Reich 6635e4dda1 chore(deps): update crate-ci/typos action to v1.45.0 (#9376)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2026-04-07 20:36:03 +02: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
Ali 74827c4181 Implements #9176 : [[max_total_threads_per_threadgroup]] MSL attribute (#9327)
* Implements #9176 : `[[max_total_threads_per_threadgroup]]` MSL attribute

* introduced `DownlevelFlags::MSL2_1`
2026-04-07 11:40:13 +02:00
dnsn021anddongsong 3a8b7eaf05 fix(naga): validate @must_use usage on non-function declarations (#9367)
---------

Co-authored-by: dongsong <dongsong@pkpm.com.cn>
2026-04-03 17:20:04 +00:00
Ali c58092266e fixed incorrect packed_int3 conversion generated for Metal (#9355) 2026-04-02 13:29:04 -06:00
Brendon Daugherty 1080b4faf3 fix(wgsl-in): Handle Unterminated Block Comments (#9356) 2026-04-02 13:26:21 -06:00
e46eda2e4f Full per_vertex implementation (#9219)
* Some stuff worked on

* Works on MSL

* Ready for test 2

* Fix for a thing lol

* Fixed 2 errors

* Fixed DXC

* Add changelog

* Updated CI to hopefully pass on macOS

* Various fixes

* Some final fixes

* CHanged CI

* Update naga/src/front/wgsl/parse/directive/enable_extension.rs

Co-authored-by: atlv <email@atlasdostal.com>

* Thing

---------

Co-authored-by: atlv <email@atlasdostal.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2026-04-02 05:33:42 +00:00
Andy Leiserson 59c0c54029 Fix minor issues with @size attribute (#9322)
* test(cts): List updates

* fix(naga): Disallow @size on dynamically-sized arrays

* fix(naga): Increase MAX_TYPE_SIZE to i32::MAX
2026-03-30 16:56:09 +02:00
Ali a071a4d5aa Fixes #9283 : firstLeadingBit returns signed semantics result instead… (#9299)
* Fixes #9283 : firstLeadingBit returns signed semantics result instead of unsigned for u32 input 0xFFFFFFFF on Metal backend

* updates snapshots

* added  to passing tests
2026-03-26 14:46:43 +01:00
cui a58f51a256 fix(naga): report offending index in IndexOutOfBounds for AccessIndex (#9312) 2026-03-26 11:34:21 +01:00
Erich Gubler da87026797 style: run prettier --write . 2026-03-25 12:46:54 -06:00
ecoricemon 96675e5215 fix(naga): Reject direct access to atomic variables (#9262)
* fix(naga): Reject direct access to atomic variables

* resolve CHANGELOG conflict

* chore: Update CTS list
2026-03-25 18:23:34 +01:00
RobandJim Blandy 73600f11d7 Add no_std support for the naga/wgsl-in feature (#9055)
* add no_std support for naga/wgsl-in

* simplify emit_to_string_with_path signature to use &str instead of std::path::Path

* inline hexf-parse

* update Cargo.lock and .deny.toml

* Do provide full path in snapshot error messages.

---------

Co-authored-by: Jim Blandy <jimb@red-bean.com>
2026-03-25 08:12:33 -07:00
Inner Daemons a53ffffe38 Mesh shader HLSL writer (#8752) 2026-03-24 15:42:38 -04:00
Kevin Reid 1148bac37c Convert comments on lint attributes to reasons. (#9292) 2026-03-24 18:58:52 +00:00
Andy Leiserson 8ddbd2d236 fix(naga): Disallow derivatives for f16 (#9154) 2026-03-24 17:52:47 +00:00
ecoricemon d199493486 fix(naga): Raise an error on division by zero (#9276)
Add validation about division by zero in valiator.  Plus, fix div/rem on i32 in
const-eval.
Relevant spec <https://gpuweb.github.io/gpuweb/wgsl/#arithmetic-expr> says
"If e1 is most negative value in T, and e2 is -1: ..." which means -MIN / -1 is
an error. This is exercised by CTS.
2026-03-23 21:18:54 +01:00
ecoricemon 97e235fde8 fix(naga): Fix const evaluation on bool (#9275) 2026-03-23 21:13:11 +01:00
Erich Gubler 3c13b5e68c fix(metal): unconditionally enable CLIP_DISTANCES 2026-03-20 10:58:29 -06:00
Erich Gubler cc1a10f24a fix(msl-out): print resolved binding before array length
This only really applies to `[[clip_distances]]` right now, but Teo and
I are pretty sure this is the right order for other attributes we might
add for array types, too.
2026-03-20 10:58:29 -06:00
ecoricemon bb73dd843c fix(naga): Add validation for some math builtins in const-eval (#9249)
Added validation on builtin math functions `acosh`, `length`,
`normalize`, and `pow` during const evaluation.
2026-03-20 09:47:41 -07:00
Erich Gubler b7de7886b4 refactor: use plural "clip distances" for cross-platform layers (#9267) 2026-03-19 23:19:33 +00:00
Andy Leiserson 0e2650781c fix: dual-source blending validation
- Validate `@blend_src` structs in type validation. The spec requires
  validating any struct with `@blend_src` attributes, whether or not
  it is used by an entry point.
- Remove `@blend_src`-related interface validation that is
  redundant with the type validation.
- Dual-source blending requires that there be a single color
  attachment.
2026-03-18 09:52:01 -07:00
Andy Leiserson 3cb29686ae refactor(naga): Update IO_SHAREABLE definition 2026-03-18 09:52:01 -07:00