1cbuffer _UniformBuffer : register(b0, space0) 2{ 3 float4 _23_colorRed : packoffset(c0); 4 row_major float2x2 _23_testMatrix2x2 : packoffset(c1); 5 float _23_testArray[5] : packoffset(c3); 6}; 7 8 9static float4 sk_FragColor; 10 11struct SPIRV_Cross_Output 12{ 13 float4 sk_FragColor : SV_Target0; 14}; 15 16static float globalArray[5] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f }; 17static float2x2 globalMatrix = float2x2(0.0f.xx, 0.0f.xx); 18 19float4 main(float2 _36) 20{ 21 float _16[5] = { 1.0f, 1.0f, 1.0f, 1.0f, 1.0f }; 22 globalArray = _16; 23 globalMatrix = float2x2(1.0f.xx, 1.0f.xx); 24 float _43[5] = { 0.0f, 1.0f, 2.0f, 3.0f, 4.0f }; 25 float localArray[5] = _43; 26 float2x2 localMatrix = float2x2(float2(0.0f, 1.0f), float2(2.0f, 3.0f)); 27 bool _78 = false; 28 if ((1.0f == _23_testArray[4]) && ((1.0f == _23_testArray[3]) && ((1.0f == _23_testArray[2]) && ((1.0f == _23_testArray[1]) && (1.0f == _23_testArray[0]))))) 29 { 30 _78 = true; 31 } 32 else 33 { 34 _78 = all(bool2(1.0f.xx.x == _23_colorRed.xy.x, 1.0f.xx.y == _23_colorRed.xy.y)); 35 } 36 bool _92 = false; 37 if (_78) 38 { 39 _92 = true; 40 } 41 else 42 { 43 _92 = all(bool2(1.0f.xx.x == _23_testMatrix2x2[0].x, 1.0f.xx.y == _23_testMatrix2x2[0].y)) && all(bool2(1.0f.xx.x == _23_testMatrix2x2[1].x, 1.0f.xx.y == _23_testMatrix2x2[1].y)); 44 } 45 bool _111 = false; 46 if (_92) 47 { 48 _111 = true; 49 } 50 else 51 { 52 _111 = (4.0f == _23_testArray[4]) && ((3.0f == _23_testArray[3]) && ((2.0f == _23_testArray[2]) && ((1.0f == _23_testArray[1]) && (0.0f == _23_testArray[0])))); 53 } 54 bool _119 = false; 55 if (_111) 56 { 57 _119 = true; 58 } 59 else 60 { 61 _119 = all(bool2(1.0f.xx.x == _23_colorRed.xy.x, 1.0f.xx.y == _23_colorRed.xy.y)); 62 } 63 bool _131 = false; 64 if (_119) 65 { 66 _131 = true; 67 } 68 else 69 { 70 _131 = all(bool2(float2(0.0f, 1.0f).x == _23_testMatrix2x2[0].x, float2(0.0f, 1.0f).y == _23_testMatrix2x2[0].y)) && all(bool2(float2(2.0f, 3.0f).x == _23_testMatrix2x2[1].x, float2(2.0f, 3.0f).y == _23_testMatrix2x2[1].y)); 71 } 72 if (_131) 73 { 74 return _23_colorRed; 75 } 76 return float4(0.0f, 1.0f, 0.0f, 1.0f); 77} 78 79void frag_main() 80{ 81 float2 _32 = 0.0f.xx; 82 float4 _34 = main(_32); 83 sk_FragColor = _34; 84} 85 86SPIRV_Cross_Output main() 87{ 88 frag_main(); 89 SPIRV_Cross_Output stage_output; 90 stage_output.sk_FragColor = sk_FragColor; 91 return stage_output; 92} 93