Skip to content

Disallow array types in var<immediate> - #10081

Open
beicause wants to merge 2 commits into
gfx-rs:trunkfrom
beicause:fix-immediates-validate-array
Open

Disallow array types in var<immediate>#10081
beicause wants to merge 2 commits into
gfx-rs:trunkfrom
beicause:fix-immediates-validate-array

Conversation

@beicause

Copy link
Copy Markdown
Contributor

Connections
#8556

Description
Arrays and struct containing array members are disallowed in var<immediate>
https://gpuweb.github.io/gpuweb/wgsl/#ref-for-address-spaces-immediate%E2%91%A0

Testing
cargo xtask cts 'webgpu:shader,validation,decl,immediate:store_type,invalid:*' and cargo test -p naga array_in_immediate

Squash or Rebase?
Squash

Checklist

  • I self-reviewed and fully understand this PR.
  • WebGPU implementations built with wgpu may be affected behaviorally.
  • Validation and feature gates are in place to confine behavioral changes.
  • Tests demonstrate the validation and altered logic works.
  • CHANGELOG.md entries for the user-facing effects of this change are present.
  • The PR is minimal, and doesn't make sense to land as multiple PRs.
  • Commits are logically scoped and individually reviewable.
  • The PR description has enough context to understand the motivation and solution implemented.

@beicause
beicause force-pushed the fix-immediates-validate-array branch from b0c596b to e923566 Compare August 15, 2026 06:30
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.

1 participant