Skip to content

Conversation

@cryvosh
Copy link
Contributor

@cryvosh cryvosh commented Dec 28, 2025

Connections
FIxes #8785.

Description
workgroupUniformLoad now matches the spec and returns the inner type when called on an atomic.

Testing
Added a new snapshot test workgroup-uniform-load-atomic.wgsl

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.

Copy link
Collaborator

@inner-daemons inner-daemons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! Broadly LGTM, just a few suggestions

Copy link
Collaborator

@inner-daemons inner-daemons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for working on this. Probably it will get merged sometime around the 7th.

Comment on lines +1482 to +1483
// workgroupUniformLoad on atomic<T> returns T, not atomic<T>.
// Verify the pointer's atomic scalar matches the result scalar.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

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.

workgroupUniformLoad specialization for atomic<T> is missing.

2 participants