2021-06-29 13:36:05 +00:00
|
|
|
struct Interface {
|
2022-01-19 22:46:57 +00:00
|
|
|
@location(0) @interpolate(flat)
|
2022-03-28 14:31:22 +00:00
|
|
|
i : i32,
|
2022-01-19 22:46:57 +00:00
|
|
|
@location(1) @interpolate(flat)
|
2022-03-28 14:31:22 +00:00
|
|
|
u : u32,
|
2022-01-19 22:46:57 +00:00
|
|
|
@location(2) @interpolate(flat)
|
2022-03-28 14:31:22 +00:00
|
|
|
vi : vec4<i32>,
|
2022-01-19 22:46:57 +00:00
|
|
|
@location(3) @interpolate(flat)
|
2022-03-28 14:31:22 +00:00
|
|
|
vu : vec4<u32>,
|
2022-01-19 22:46:57 +00:00
|
|
|
@builtin(position)
|
2022-03-28 14:31:22 +00:00
|
|
|
pos : vec4<f32>,
|
2022-01-19 18:11:17 +00:00
|
|
|
}
|
2021-06-29 13:36:05 +00:00
|
|
|
|
2022-06-07 13:55:34 +00:00
|
|
|
@vertex
|
2021-06-29 13:36:05 +00:00
|
|
|
fn vert_main() -> Interface {
|
|
|
|
return Interface();
|
|
|
|
}
|
|
|
|
|
2022-06-07 13:55:34 +00:00
|
|
|
@fragment
|
2022-01-19 22:46:57 +00:00
|
|
|
fn frag_main(inputs : Interface) -> @location(0) i32 {
|
2021-06-29 18:05:25 +00:00
|
|
|
return inputs.i;
|
2021-06-29 13:36:05 +00:00
|
|
|
}
|