2021-06-18 18:56:13 +00:00
|
|
|
SKIP: FAILED
|
|
|
|
|
|
|
|
|
2021-06-18 18:56:13 +00:00
|
|
|
fn atomicMax_a89cc3(tint_symbol : ptr<workgroup, atomic<i32>>) {
|
|
|
|
var res : i32 = atomicMax(&(*(tint_symbol)), 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
[[stage(compute)]]
|
|
|
|
fn compute_main() {
|
|
|
|
[[internal(disable_validation__function_var_storage_class)]] var<workgroup> tint_symbol_1 : atomic<i32>;
|
|
|
|
atomicMax_a89cc3(&(tint_symbol_1));
|
|
|
|
}
|
|
|
|
|
|
|
|
error: cannot declare an atomic var in a function scope
|