2021-06-29 13:36:05 +00:00
|
|
|
struct Interface {
|
2021-10-21 23:08:44 +00:00
|
|
|
[[location(0), interpolate(flat)]] i : i32;
|
|
|
|
[[location(1), interpolate(flat)]] u : u32;
|
|
|
|
[[location(2), interpolate(flat)]] vi : vec4<i32>;
|
|
|
|
[[location(3), interpolate(flat)]] vu : vec4<u32>;
|
2021-06-29 13:36:05 +00:00
|
|
|
[[builtin(position)]] pos : vec4<f32>;
|
|
|
|
};
|
|
|
|
|
|
|
|
[[stage(vertex)]]
|
|
|
|
fn vert_main() -> Interface {
|
|
|
|
return Interface();
|
|
|
|
}
|
|
|
|
|
|
|
|
[[stage(fragment)]]
|
2021-06-29 18:05:25 +00:00
|
|
|
fn frag_main(inputs : Interface) -> [[location(0)]] i32 {
|
|
|
|
return inputs.i;
|
2021-06-29 13:36:05 +00:00
|
|
|
}
|