Skip to content

WebGPU/WGSL: atomicCompareExchangeWeak now returns structure _atomic_compare_exchange_result<T> #6480

@amaiorano

Description

@amaiorano

Hello,

I'm a developer on the Google Tint team, and I wanted to let you know that we just landed a breaking change to atomicCompareExchangeWeak that will affect you here. Instead of returning a vec2, it now returns a struct, as per the spec. Ideally, we minimize breaking changes like this with deprecation periods, but for builtin return types, this is difficult to do.

Please let me know if this is going to be a major problem for you. If so, perhaps we can work out a compile-time flag to bring back the old code path, if really necessary.

Calling out @qjia7 on this issue as per @kainino0x.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions