Skip to content

Fix/unroll initializer type - #1515

Merged
wingertge merged 2 commits into
mainfrom
fix/unroll-initializer-type
Aug 14, 2026
Merged

Fix/unroll initializer type#1515
wingertge merged 2 commits into
mainfrom
fix/unroll-initializer-type

Conversation

@louisfd

@louisfd louisfd commented Aug 13, 2026

Copy link
Copy Markdown
Member

No description provided.

louisfd and others added 2 commits August 13, 2026 15:51
The initializer attribute carries its own copy of the type, which was left
untouched while the declaration's type was unrolled. That produced mismatched
declarations like `array<vec4<f32>, 8> = array<vec8<f32>, 4>()`, which fail to
compile since no WGSL backend has `vec8`.

Rebuild `ZeroAttr` initializers with the unrolled type on both the in-place
path (array shape changes, size stays the same) and the split path (one wide
declaration becomes several narrow ones).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@wingertge
wingertge merged commit dcbde0b into main Aug 14, 2026
6 checks passed
@wingertge
wingertge deleted the fix/unroll-initializer-type branch August 14, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants