-
Notifications
You must be signed in to change notification settings - Fork 308
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
Make atomicCompareExchangeWeak return a structure #2113
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is nicer.
Thanks!
I'd like @ben-clayton to review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. One nit about the field name, but is much nicer, thank you.
b2f37a2
to
61f0b56
Compare
Do we want to bring this into the group discussion? |
WGSL meeting minutes 2021-09-21
|
…_compare_exchange_result` struct, and add SPIR-V codegen for it. Partially addresses gpuweb/gpuweb#2113, gfx-rs#1755.
…2165) * Add support for WGSL's `atomicCompareExchangeWeak` with the `__atomic_compare_exchange_result` struct, and add SPIR-V codegen for it. Partially addresses gpuweb/gpuweb#2113, #1755. * Add tests for `atomicCompareExchangeWeak`, and support both u32 and i32 atomics with it. * More thorough typechecking of the struct returned by `atomicCompareExchangeWeak`.
Fixes #2021
It looks a bit more advanced than the
frexp
stuff because it returns a structure that's generic overT
.