James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 1 | struct FragmentInputs { |
| 2 | float4 position; |
| 3 | bool front_facing; |
| 4 | uint sample_index; |
| 5 | uint sample_mask; |
| 6 | }; |
| 7 | struct tint_symbol_1 { |
| 8 | float4 position : SV_Position; |
| 9 | bool front_facing : SV_IsFrontFace; |
| 10 | uint sample_index : SV_SampleIndex; |
| 11 | uint sample_mask : SV_Coverage; |
| 12 | }; |
| 13 | |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 14 | void main_inner(FragmentInputs inputs) { |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 15 | if (inputs.front_facing) { |
| 16 | const float4 foo = inputs.position; |
| 17 | const uint bar = (inputs.sample_index + inputs.sample_mask); |
| 18 | } |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | void main(tint_symbol_1 tint_symbol) { |
| 22 | const FragmentInputs tint_symbol_2 = {tint_symbol.position, tint_symbol.front_facing, tint_symbol.sample_index, tint_symbol.sample_mask}; |
| 23 | main_inner(tint_symbol_2); |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 24 | return; |
| 25 | } |