15 lines
434 B
Plaintext
15 lines
434 B
Plaintext
SKIP: FAILED
|
|
|
|
|
|
fn atomicCompareExchangeWeak_89ea3b(tint_symbol : ptr<workgroup, atomic<i32>>) {
|
|
var res : vec2<i32> = atomicCompareExchangeWeak(&(*(tint_symbol)), 1, 1);
|
|
}
|
|
|
|
[[stage(compute)]]
|
|
fn compute_main() {
|
|
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<i32>;
|
|
atomicCompareExchangeWeak_89ea3b(&(tint_symbol_1));
|
|
}
|
|
|
|
error: cannot declare an atomic var in a function scope
|