blob: ddd459fb6b70e4569aa77d3aa6d8d8708712556d [file] [log] [blame]
struct Interface {
@location(1)
col1 : f32,
@location(2)
col2 : f32,
@builtin(position)
pos : vec4<f32>,
}
@vertex
fn vert_main() -> Interface {
return Interface(0.4, 0.6, vec4<f32>());
}
@fragment
fn frag_main(colors : Interface) {
let r : f32 = colors.col1;
let g : f32 = colors.col2;
}