blob: 1d9d5878177ca0ee5001fe3332d2e6f882b6f314 [file] [log] [blame]
James Pricebb0496e2021-06-03 09:38:34 +00001struct FragmentInputs0 {
2 float4 position;
3 int loc0;
4};
5struct FragmentInputs1 {
6 float4 loc3;
7 uint sample_mask;
8};
9struct tint_symbol_1 {
James Pricea41694e2021-10-21 23:08:44 +000010 nointerpolation int loc0 : TEXCOORD0;
11 nointerpolation uint loc1 : TEXCOORD1;
James Pricebb0496e2021-06-03 09:38:34 +000012 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 Pricea5d73ce2021-08-04 22:15:28 +000020void main_inner(FragmentInputs0 inputs0, bool front_facing, uint loc1, uint sample_index, FragmentInputs1 inputs1, float loc2) {
James Pricebb0496e2021-06-03 09:38:34 +000021 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 Pricea5d73ce2021-08-04 22:15:28 +000029}
30
31void 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 Pricebb0496e2021-06-03 09:38:34 +000035 return;
36}