James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 1 | struct FragmentInputs0 { |
| 2 | float4 position; |
| 3 | int loc0; |
| 4 | }; |
| 5 | struct FragmentInputs1 { |
| 6 | float4 loc3; |
| 7 | uint sample_mask; |
| 8 | }; |
| 9 | struct tint_symbol_1 { |
James Price | a41694e | 2021-10-21 23:08:44 +0000 | [diff] [blame] | 10 | nointerpolation int loc0 : TEXCOORD0; |
| 11 | nointerpolation uint loc1 : TEXCOORD1; |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 12 | float loc2 : TEXCOORD2; |
| 13 | float4 loc3 : TEXCOORD3; |
| 14 | float4 position : SV_Position; |
| 15 | bool front_facing : SV_IsFrontFace; |
| 16 | uint sample_index : SV_SampleIndex; |
| 17 | uint sample_mask : SV_Coverage; |
| 18 | }; |
| 19 | |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 20 | void main_inner(FragmentInputs0 inputs0, bool front_facing, uint loc1, uint sample_index, FragmentInputs1 inputs1, float loc2) { |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 21 | if (front_facing) { |
| 22 | const float4 foo = inputs0.position; |
| 23 | const uint bar = (sample_index + inputs1.sample_mask); |
| 24 | const int i = inputs0.loc0; |
| 25 | const uint u = loc1; |
| 26 | const float f = loc2; |
| 27 | const float4 v = inputs1.loc3; |
| 28 | } |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | void main(tint_symbol_1 tint_symbol) { |
| 32 | const FragmentInputs0 tint_symbol_2 = {tint_symbol.position, tint_symbol.loc0}; |
| 33 | const FragmentInputs1 tint_symbol_3 = {tint_symbol.loc3, tint_symbol.sample_mask}; |
| 34 | main_inner(tint_symbol_2, tint_symbol.front_facing, tint_symbol.loc1, tint_symbol.sample_index, tint_symbol_3, tint_symbol.loc2); |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 35 | return; |
| 36 | } |