Skip to content

Commit

Permalink
updated snapshot out file
Browse files Browse the repository at this point in the history
  • Loading branch information
schell committed Dec 10, 2024
1 parent a2baae9 commit 116c0d1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions naga/tests/out/wgsl/atomic_global_struct_field_vertex.wgsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
struct type_5 {
member: u32,
member_1: vec2<f32>,
member_2: atomic<u32>,
}

struct type_6 {
member: type_5,
}

@group(0) @binding(0)
var<storage, read_write> global: type_6;
var<private> global_1: vec4<f32> = vec4<f32>(0f, 0f, 0f, 1f);

fn function() {
let _e7 = global.member.member;
let _e8 = atomicAdd((&global.member.member_2), _e7);
let _e9 = f32(_e8);
let _e12 = global.member.member_1;
global_1 = vec4<f32>((_e9 * _e12.x), (_e9 * _e12.y), 0f, _e9);
return;
}

@vertex
fn global_field_vertex() -> @builtin(position) vec4<f32> {
function();
let _e1 = global_1;
return _e1;
}

0 comments on commit 116c0d1

Please sign in to comment.