blob: 480fb5821052664dd7bf7425cb5de61f278c4064 [file] [log] [blame]
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));
}