blob: 570799b95e54630029c17df8242a5dfc2491a5c7 [file] [log] [blame]
// flags: --pixel_local_attachments 0=1,1=6,2=3 --pixel_local_attachment_formats 0=R32Uint,1=R32Sint,2=R32Float
enable chromium_experimental_pixel_local;
struct PixelLocal {
a : u32,
b : i32,
c : f32,
}
var<pixel_local> P : PixelLocal;
struct In {
@location(0) uv : vec4f,
}
@fragment fn f(@builtin(position) pos : vec4f, in : In) {
P.a += u32(pos.x) + u32(in.uv.x);
}