blob: d6c90137316018ffe6901b990bfeabac615b9666 [file] [log] [blame]
enable chromium_internal_dual_source_blending;
struct FragInput {
@location(0)
a : vec4<f32>,
@location(1)
b : vec4<f32>,
}
struct FragOutput {
@location(0) @blend_src(0)
color : vec4<f32>,
@location(0) @blend_src(1)
blend : vec4<f32>,
}
@fragment
fn frag_main(in : FragInput) -> FragOutput {
var output : FragOutput;
output.color = in.a;
output.blend = in.b;
return output;
}