1struct S 2{ 3 float f; 4 float af[5]; 5 float4 h4; 6 float4 ah4[5]; 7}; 8 9cbuffer _UniformBuffer : register(b0, space0) 10{ 11 float4 _20_colorGreen : packoffset(c0); 12}; 13 14 15static float4 sk_FragColor; 16 17struct SPIRV_Cross_Output 18{ 19 float4 sk_FragColor : SV_Target0; 20}; 21 22static float4 globalVar = 0.0f.xxxx; 23static S globalStruct = { 0.0f, { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f }, 0.0f.xxxx, { 0.0f.xxxx, 0.0f.xxxx, 0.0f.xxxx, 0.0f.xxxx, 0.0f.xxxx } }; 24 25void assignToFunctionParameter_vif(out int _44, out float _45) 26{ 27 _44 = 1; 28 _45 = 1.0f; 29} 30 31void keepAlive_vf(float _37) 32{ 33} 34 35void keepAlive_vh(float _35) 36{ 37} 38 39void keepAlive_vi(int _41) 40{ 41} 42 43float4 main(float2 _50) 44{ 45 int i = 0; 46 int4 i4 = int4(1, 2, 3, 4); 47 float3x3 f3x3 = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); 48 float4 x = 0.0f.xxxx; 49 x.w = 0.0f; 50 x = float4(0.0f.xx.y, 0.0f.xx.x, x.z, x.w); 51 int ai[1] = { 0 }; 52 ai[0] = 0; 53 int4 ai4[1] = { int4(0, 0, 0, 0) }; 54 ai4[0] = int4(1, 2, 3, 4); 55 float3x3 ah3x3[1] = { float3x3(0.0f.xxx, 0.0f.xxx, 0.0f.xxx) }; 56 ah3x3[0] = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); 57 float4 af4[1] = { 0.0f.xxxx }; 58 af4[0].x = 0.0f; 59 af4[0] = float4(1.0f.xxxx.z, 1.0f.xxxx.x, 1.0f.xxxx.w, 1.0f.xxxx.y); 60 S s = { 0.0f, { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f }, 0.0f.xxxx, { 0.0f.xxxx, 0.0f.xxxx, 0.0f.xxxx, 0.0f.xxxx, 0.0f.xxxx } }; 61 s.f = 0.0f; 62 s.af[1] = 0.0f; 63 s.h4 = float4(9.0f.xxx.y, 9.0f.xxx.z, 9.0f.xxx.x, s.h4.w); 64 s.ah4[2] = float4(s.ah4[2].x, 5.0f.xx.x, s.ah4[2].z, 5.0f.xx.y); 65 globalVar = 0.0f.xxxx; 66 globalStruct.f = 0.0f; 67 int _118 = 0; 68 float _123 = f3x3[0].x; 69 assignToFunctionParameter_vif(_118, _123); 70 f3x3[0].x = _123; 71 float l = 0.0f; 72 ai[0] += ai4[0].x; 73 s.f = 1.0f; 74 s.af[0] = 2.0f; 75 s.h4 = 1.0f.xxxx; 76 s.ah4[0] = 2.0f.xxxx; 77 float repeat = 1.0f; 78 repeat = 1.0f; 79 float _142 = af4[0].x; 80 keepAlive_vf(_142); 81 af4[0].x = _142; 82 float _148 = ah3x3[0][0].x; 83 keepAlive_vh(_148); 84 ah3x3[0][0].x = _148; 85 int _152 = i; 86 keepAlive_vi(_152); 87 i = _152; 88 int _157 = i4.y; 89 keepAlive_vi(_157); 90 i4.y = _157; 91 int _162 = ai[0]; 92 keepAlive_vi(_162); 93 ai[0] = _162; 94 int _168 = ai4[0].x; 95 keepAlive_vi(_168); 96 ai4[0].x = _168; 97 float _173 = x.y; 98 keepAlive_vh(_173); 99 x.y = _173; 100 float _178 = s.f; 101 keepAlive_vf(_178); 102 s.f = _178; 103 float _182 = l; 104 keepAlive_vh(_182); 105 l = _182; 106 float _188 = f3x3[0].x; 107 keepAlive_vf(_188); 108 f3x3[0].x = _188; 109 float _192 = repeat; 110 keepAlive_vf(_192); 111 repeat = _192; 112 return _20_colorGreen; 113} 114 115void frag_main() 116{ 117 float2 _30 = 0.0f.xx; 118 float4 _32 = main(_30); 119 sk_FragColor = _32; 120} 121 122SPIRV_Cross_Output main() 123{ 124 frag_main(); 125 SPIRV_Cross_Output stage_output; 126 stage_output.sk_FragColor = sk_FragColor; 127 return stage_output; 128} 129