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