// This snapshot tests accessing various containers, dereferencing pointers. [[block]] struct Bar { matrix: mat4x4; data: [[stride(4)]] array; }; [[group(0), binding(0)]] var bar: [[access(read_write)]] Bar; [[stage(vertex)]] fn foo([[builtin(vertex_index)]] vi: u32) -> [[builtin(position)]] vec4 { var foo: f32 = 0.0; // We should check that backed doesn't skip this expression let baz: f32 = foo; foo = 1.0; let index = 3u; let b = bar.matrix[index].x; let a = bar.data[arrayLength(&bar.data) - 2u]; var c = array(a, i32(b), 3, 4, 5); c[vi + 1u] = 42; let value = c[vi]; return vec4(vec4(value)); }