blob: f0bc1b1e7d4865cc314e0ec1417a83ceb5321417 [file] [log] [blame]
// flags: --pixel_local_attachments 0=1 --pixel_local_attachment_formats 0=R32Uint
enable chromium_experimental_pixel_local;
struct PixelLocal {
a : u32,
}
var<pixel_local> P : PixelLocal;
struct Out {
@location(0) x : vec4f,
@location(2) y : vec4f,
@location(3) z : vec4f,
}
fn f0() {
P.a += 9;
}
fn f1() {
f0();
P.a += 8;
}
fn f2() {
P.a += 7;
f1();
}
@fragment fn f() -> Out {
f2();
return Out(vec4f(10), vec4f(20), vec4f(30));
}