Younes Beriane and Erich Gubler
03017a1aba
[naga wgsl-in] Reject loads of types that contain atomics ( #10458 )
...
Co-authored-by: Erich Gubler <erichdongubler@gmail.com >
2026-10-07 21:06:23 +00:00
Erich Gubler
ae19a4708b
fix(hlsl-out): cast float types back from sign's output
2026-10-05 12:08:36 +00:00
Erich Gubler
24cee9e495
test(naga): add runtime_{f,i}32 to math-functions' sign cvg.
2026-10-05 12:08:36 +00:00
Erich Gubler
3a227342f2
test(naga): add float-sign snapshot
2026-10-05 12:08:36 +00:00
Ferdon and Ferdon
5a7601baf4
Reject unsigned inputs to sign ( #10451 )
...
Co-authored-by: Ferdon <notferdon@users.noreply.github.com >
2026-09-28 05:18:12 +00:00
Jim Blandy
d8548d5991
[naga] Include path in HLSL validation error messages. ( #10404 )
2026-09-25 05:12:39 +00:00
Erich Gubler and Andy Leiserson
b8bfc58e81
fix(const_eval): handle non-vector Compose select args. ( #10350 )
...
Co-authored-by: Andy Leiserson <aleiserson@mozilla.com >
2026-09-23 10:04:22 +00:00
MinerSheep and Teodor Tanasoaia
103a70e581
[naga] const_evaluator: insertBits, extractBits, faceForward, reflect, and refract ( #10258 )
...
Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com >
2026-09-22 20:17:45 +00:00
Connor Fitzgerald
35332d2114
Update agent tooling ( #10202 )
2026-09-18 15:06:10 +00:00
sagudev
a072eea89d
Move language_extension into naga-types
...
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com >
2026-09-17 10:45:20 +00:00
f365d54803
implement debugPrintf in msl & spv ( #9389 )
...
Co-authored-by: atlv <email@atlasdostal.com >
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2026-09-15 18:49:35 +00:00
renovate[bot] and Connor Fitzgerald
7dcf5c1820
Update Rust to 1.95 ( #10207 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com >
2026-09-15 16:52:45 +00:00
Atirna
8ef593b61d
Fix doc_comments struct_member indices for undocumented members ( #10273 )
2026-09-14 08:07:06 -04:00
Andy Leiserson
10fe6409d4
Partial snorm10-10-10-2 vertex format support ( #10226 )
2026-09-11 10:53:31 -04:00
Andy Leiserson
aed6771a20
fix(naga): Fix compilation error when glsl-in enabled in isolation ( #10297 )
2026-09-09 16:00:02 +00:00
Emil Ernerfeldt
9fa0644916
[wgsl-in] Better WGSL error reporting ( #9973 )
2026-09-05 19:50:59 +02:00
JMS55
dd5c40b474
Support raytracing barycentrics for spirv, and fix spirv 1.4 handling for mesh and raytracing shaders ( #10193 )
2026-09-04 20:58:29 +00:00
Luo Zhihao
8c1b137be2
Disallow array types in var<immediate> ( #10081 )
2026-09-02 14:25:31 +00:00
Connor Fitzgerald
9dfc677068
Unbreak trunk: zizmor permissions and stale WGSL snapshots ( #10235 )
2026-09-01 10:50:23 -07:00
Nazar Mokrynskyi
bd54ab2c0e
naga: don't emit trailing whitespace after own-line WGSL attributes ( #10131 )
2026-09-01 06:07:47 -04:00
Connor Fitzgerald
7bcd2125ff
ci: Update Vulkan SDK to 1.4.357 ( #10213 )
2026-08-31 23:57:44 -04:00
Vecvec
ef0a0a230f
Prevent ray queries hoisted out of loops from generating invalid code ( #9945 )
2026-08-29 17:32:42 -04:00
JMS55
e9a873e5d2
[SPIR-V out] Correctly lower instance_index in raytracing shaders ( #10154 )
2026-08-29 14:24:11 +12:00
JMS55
a49c1e1e1d
[SPIR-V out] Handle primitive_index in mesh and raytracing shaders ( #10153 )
2026-08-28 17:34:46 -04:00
Benjamin Brienen
1de9071060
fix spelling of wgpu_ray_tracing_pipeline internal field to match actual spelling ( #10183 )
2026-08-27 21:20:03 +02:00
Erich Gubler
f28f1bf49f
fix(naga): reject @location(…)s for input in compute shaders
2026-08-19 20:04:16 +02:00
Erich Gubler
468e9da9a5
fix(naga): disallow result types in compute shaders
2026-08-19 20:04:16 +02:00
Erich Gubler
0b5a96dbd8
refactor(naga): use match for exhaustive stage checks in entry point validation
2026-08-19 20:04:16 +02:00
Benjamin Brienen and Erich Gubler
0e47071fbd
Validate unary ops in WGSL lowerer ( #10036 )
...
Co-authored-by: Erich Gubler <erichdongubler@gmail.com >
2026-08-18 10:50:08 -04:00
Emil Ernerfeldt
a6caee7084
Gate @interpolate(linear) behind a downlevel flag ( #9972 )
2026-08-16 12:11:15 +00:00
Erich Gubler
41bac0dffb
diag(naga): add missing end backtick to InvalidInterpolationForInteger msg. ( #10023 )
2026-08-07 09:39:21 -07:00
Erich Gubler
cdc9d0c4dd
fix(glsl-out): avoid accidental predecrement in atomicSub negation ( #9924 )
2026-08-04 09:41:42 +00:00
bolshoytoster
fa6d834891
Reduce bloat from wgsl::Error::as_parse_error ( #9944 )
2026-08-03 10:55:45 -07:00
Jim Blandy
c2d5fa49da
[naga] Test validation of function/entry point name collision.
...
Unlike WGSL, Naga IR permits functions to have conflicting names, and
entry points must only have distinct names if they are for the same
shader stage. Document and test this.
2026-08-03 08:22:34 -07:00
Jim Blandy
faac3bb16b
[naga] Document entry_point argument to process_overrides.
2026-08-03 07:40:24 -07:00
c079e55f53
fix: emit dimension-correct HLSL texture sample offsets ( #9951 )
...
Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com >
Co-authored-by: Erich Gubler <erichdongubler@gmail.com >
2026-07-30 12:58:50 +00:00
Jim Blandy
5205d3d1e5
[naga] Update Emit documentation. ( #9968 )
2026-07-30 06:33:39 -04:00
Nazar Mokrynskyi
fb1c777b2f
naga: fix panic parsing SPIR-V subgroup reduce/scan/ballot ops
2026-07-29 18:01:48 -07:00
Jim Blandy and Claude Sonnet 5
f892b2e235
spv-out: don't dynamically index PushConstant vectors with OpAccessChain
...
Per VUID-RuntimeSpirv-None-04745, all accesses into a PushConstant-storage-class
variable that are arrays must use dynamically uniform indices; this restriction
also applies to vectors. Naga was emitting `OpAccessChain` with per-invocation
(non-uniform) indices directly into push-constant vectors, which is undefined
behavior under that rule -- observed on RADV as every invocation silently
reading element 0 of the vector.
Add a special case to `write_checked_load`, alongside the existing matCx2
ones, that loads the whole vector and uses `OpVectorExtractDynamic` instead,
which isn't subject to the restriction.
Fixes gfx-rs/wgpu#8612 .
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-07-21 12:05:24 -07:00
Andy Leiserson
b2be758b64
fix(naga spv-out): Sanitize debug strings ( #9904 )
2026-07-20 20:41:22 +00:00
Luo Zhihao
77c17d24b0
Fix required immediate slots calculation and panics when slots overflow ( #9725 )
2026-07-20 12:06:14 -07:00
Erich Gubler
d73f0e5315
build: consume cfg_aliases 0.2.2 ( #9885 )
2026-07-16 15:39:48 -04:00
Jeffrey Vo
de9f9f4de8
fix(naga msl-out): Support sampler lod_clamp & max_anisotropy ( #9842 )
2026-07-16 12:21:07 -04:00
Erich Gubler
15d817e404
Suppress semicolon_in_expressions_from_macros lint in build scripts ( #9884 )
2026-07-16 15:43:51 +00:00
Erich Gubler
d19bc953ce
fix(msl-out): populate TypeContext::access when printing storage texture function arguments ( #9867 )
2026-07-15 11:42:02 -04:00
Erich Gubler
ee9f40c316
chore: remove package.authors in Cargo.toml ( #9862 )
2026-07-15 11:41:12 -04:00
Luo Zhihao
d056b0e025
Validate pipeline layout immediate_size and fix its calculation when there are multiple immediate variables ( #9711 )
2026-07-14 09:47:17 -07:00
Laurent Cheylus
328e03c3c5
fix(naga): disable libfuzzer on OpenBSD ( #9858 )
...
Signed-off-by: Laurent Cheylus <foxy@free.fr >
2026-07-13 00:53:33 -04:00
Luo Zhihao and Jim Blandy
7fe459a58b
Lower clippy large-error-threshold ( #9612 )
...
Co-authored-by: Jim Blandy <jimb@red-bean.com >
2026-07-07 13:42:21 -04:00
Marc Stampfli
953fbd74be
Fix signed % wrong for negative operands in GLSL (OpenGL/GLES) ( #9687 )
2026-07-06 12:08:52 +02:00