James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame^] | 1 | struct FragmentInputs0 { |
| 2 | [[builtin(position)]] |
| 3 | position : vec4<f32>; |
| 4 | [[location(0)]] |
| 5 | loc0 : i32; |
| 6 | }; |
| 7 | |
| 8 | struct FragmentInputs1 { |
| 9 | [[location(3)]] |
| 10 | loc3 : vec4<f32>; |
| 11 | [[builtin(sample_mask)]] |
| 12 | sample_mask : u32; |
| 13 | }; |
| 14 | |
| 15 | [[stage(fragment)]] |
| 16 | fn main(inputs0 : FragmentInputs0, [[builtin(front_facing)]] front_facing : bool, [[location(1)]] loc1 : u32, [[builtin(sample_index)]] sample_index : u32, inputs1 : FragmentInputs1, [[location(2)]] loc2 : f32) { |
| 17 | if (front_facing) { |
| 18 | let foo : vec4<f32> = inputs0.position; |
| 19 | let bar : u32 = (sample_index + inputs1.sample_mask); |
| 20 | let i : i32 = inputs0.loc0; |
| 21 | let u : u32 = loc1; |
| 22 | let f : f32 = loc2; |
| 23 | let v : vec4<f32> = inputs1.loc3; |
| 24 | } |
| 25 | } |