Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[naga] [msl-out] Add support for metal's atomic_compare_exchange_weak #5675

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

9291Sam
Copy link

@9291Sam 9291Sam commented May 7, 2024

Connections

Fixes wgpu/wgpu#5257 and wgpu/wgpu#4364

Description
Adds an implementation of naga::Statement::Atomic {fun: naga::AtomicFunction::Exchange { compare: Some(expr) } } to the msl-out backend.

Testing
Passes tests given by cargo xtask validate msl in file naga/tests/out/msl/atomicCompareExchange.msl

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@9291Sam 9291Sam requested a review from a team as a code owner May 7, 2024 00:17
9291Sam added a commit to 9291Sam/patinac that referenced this pull request May 7, 2024
@9291Sam 9291Sam changed the title Add support for metal's atomic_compare_exchange_weak [naga] [msl-out] Add support for metal's atomic_compare_exchange_weak May 7, 2024
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.

[msl-out] atomic CompareExchange is not implemented
1 participant