Skip to content

Commit

Permalink
test: remove atomic ops from access
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Apr 3, 2023
1 parent b14bd40 commit f8c7cb1
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 1,045 deletions.
17 changes: 0 additions & 17 deletions tests/in/access.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -151,23 +151,6 @@ fn foo_frag() -> @location(0) vec4<f32> {
return vec4<f32>(0.0);
}

@compute @workgroup_size(1)
fn atomics() {
var tmp: i32;
let value = atomicLoad(&bar.atom);
tmp = atomicAdd(&bar.atom, 5);
tmp = atomicSub(&bar.atom, 5);
tmp = atomicAnd(&bar.atom, 5);
tmp = atomicOr(&bar.atom, 5);
tmp = atomicXor(&bar.atom, 5);
tmp = atomicMin(&bar.atom, 5);
tmp = atomicMax(&bar.atom, 5);
tmp = atomicExchange(&bar.atom, 5);
// https://github.com/gpuweb/gpuweb/issues/2021
// tmp = atomicCompareExchangeWeak(&bar.atom, 5, 5);
atomicStore(&bar.atom, value);
}

var<workgroup> val: u32;

fn assign_through_ptr_fn(p: ptr<workgroup, u32>) {
Expand Down
Loading

0 comments on commit f8c7cb1

Please sign in to comment.