Skip to content

Fix local_invocation_id and local_invocation_index handling#9099

Open
inner-daemons wants to merge 3 commits intogfx-rs:trunkfrom
inner-daemons:8820-fix
Open

Fix local_invocation_id and local_invocation_index handling#9099
inner-daemons wants to merge 3 commits intogfx-rs:trunkfrom
inner-daemons:8820-fix

Conversation

@inner-daemons
Copy link
Collaborator

@inner-daemons inner-daemons commented Feb 23, 2026

Connections
Closes #8820

This is blocking #8752 and #8739, which I would rather not keep having to maintain. So speed would be appreciated here.

Description
Solves issue with builtins possibly being written multiple times in HLSL and MSL, and with naming conflicts when users name variables __local_invocation_id or __local_invocation_index.

Testing
Snapshots

Squash or Rebase?
Squash

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy --tests. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

@inner-daemons inner-daemons marked this pull request as ready for review February 23, 2026 18:36
@inner-daemons inner-daemons mentioned this pull request Feb 23, 2026
6 tasks
@jimblandy jimblandy self-assigned this Feb 25, 2026
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.

Naga HLSL writer treats thread index/thread id weirdly

3 participants