gpuweb / cts

WebGPU Conformance Test Suite
https://gpuweb.github.io/cts/
BSD 3-Clause "New" or "Revised" License
130 stars 82 forks source link

wgsl: validate atomics disallow initializer expressions #1486

Closed dj2 closed 6 months ago

dj2 commented 2 years ago

An atomic can not be initialized, validate that providing an expression for atomic initialization fails.

alan-baker commented 6 months ago

This is covered by atomic type validation that check they can only be instantiated in storage and workgroup address spaces and the variable decl validation that checks storage and workgroup cannot have initializers. Atomic type validation also tests that a bunch of expressions are invalid directly on the atomic.