1hlsl.staticFuncInit.frag 2Shader version: 500 3gl_FragCoord origin is upper left 40:12Sequence 50:1 Sequence 60:1 move second child to first child ( temp float) 70:1 'x' ( global float) 80:1 Constant: 90:1 1.000000 100:5 Sequence 110:5 move second child to first child ( temp float) 120:5 'x' ( global float) 130:5 Constant: 140:5 2.000000 150:4 Function Definition: f1( ( temp float) 160:4 Function Parameters: 170:? Sequence 180:6 add second child into first child ( temp float) 190:6 'x' ( global float) 200:6 Constant: 210:6 10.000000 220:7 Branch: Return with expression 230:7 'x' ( global float) 240:12 Sequence 250:12 move second child to first child ( temp float) 260:12 'x' ( global float) 270:12 Constant: 280:12 7.000000 290:11 Function Definition: f2(f1; ( temp float) 300:11 Function Parameters: 310:11 'p' ( in float) 320:? Sequence 330:13 add second child into first child ( temp float) 340:13 'x' ( global float) 350:13 'p' ( in float) 360:14 Branch: Return with expression 370:14 'x' ( global float) 380:18 Function Definition: @main( ( temp 4-component vector of float) 390:18 Function Parameters: 400:? Sequence 410:19 Branch: Return with expression 420:19 Construct vec4 ( temp 4-component vector of float) 430:19 add ( temp float) 440:19 add ( temp float) 450:19 add ( temp float) 460:19 add ( temp float) 470:19 'x' ( global float) 480:19 Function Call: f1( ( temp float) 490:19 Function Call: f1( ( temp float) 500:19 Function Call: f2(f1; ( temp float) 510:19 Constant: 520:19 5.000000 530:19 Function Call: f2(f1; ( temp float) 540:19 'x' ( global float) 550:18 Function Definition: main( ( temp void) 560:18 Function Parameters: 570:? Sequence 580:18 move second child to first child ( temp 4-component vector of float) 590:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 600:18 Function Call: @main( ( temp 4-component vector of float) 610:? Linker Objects 620:? 'x' ( global float) 630:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 64 65 66Linked fragment stage: 67 68 69Shader version: 500 70gl_FragCoord origin is upper left 710:12Sequence 720:1 Sequence 730:1 move second child to first child ( temp float) 740:1 'x' ( global float) 750:1 Constant: 760:1 1.000000 770:5 Sequence 780:5 move second child to first child ( temp float) 790:5 'x' ( global float) 800:5 Constant: 810:5 2.000000 820:4 Function Definition: f1( ( temp float) 830:4 Function Parameters: 840:? Sequence 850:6 add second child into first child ( temp float) 860:6 'x' ( global float) 870:6 Constant: 880:6 10.000000 890:7 Branch: Return with expression 900:7 'x' ( global float) 910:12 Sequence 920:12 move second child to first child ( temp float) 930:12 'x' ( global float) 940:12 Constant: 950:12 7.000000 960:11 Function Definition: f2(f1; ( temp float) 970:11 Function Parameters: 980:11 'p' ( in float) 990:? Sequence 1000:13 add second child into first child ( temp float) 1010:13 'x' ( global float) 1020:13 'p' ( in float) 1030:14 Branch: Return with expression 1040:14 'x' ( global float) 1050:18 Function Definition: @main( ( temp 4-component vector of float) 1060:18 Function Parameters: 1070:? Sequence 1080:19 Branch: Return with expression 1090:19 Construct vec4 ( temp 4-component vector of float) 1100:19 add ( temp float) 1110:19 add ( temp float) 1120:19 add ( temp float) 1130:19 add ( temp float) 1140:19 'x' ( global float) 1150:19 Function Call: f1( ( temp float) 1160:19 Function Call: f1( ( temp float) 1170:19 Function Call: f2(f1; ( temp float) 1180:19 Constant: 1190:19 5.000000 1200:19 Function Call: f2(f1; ( temp float) 1210:19 'x' ( global float) 1220:18 Function Definition: main( ( temp void) 1230:18 Function Parameters: 1240:? Sequence 1250:18 move second child to first child ( temp 4-component vector of float) 1260:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 1270:18 Function Call: @main( ( temp 4-component vector of float) 1280:? Linker Objects 1290:? 'x' ( global float) 1300:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 131 132// Module Version 10000 133// Generated by (magic number): 8000a 134// Id's are bound by 57 135 136 Capability Shader 137 1: ExtInstImport "GLSL.std.450" 138 MemoryModel Logical GLSL450 139 EntryPoint Fragment 4 "main" 55 140 ExecutionMode 4 OriginUpperLeft 141 Source HLSL 500 142 Name 4 "main" 143 Name 8 "f1(" 144 Name 13 "f2(f1;" 145 Name 12 "p" 146 Name 17 "@main(" 147 Name 20 "x" 148 Name 22 "x" 149 Name 24 "x" 150 Name 44 "param" 151 Name 47 "param" 152 Name 55 "@entryPointOutput" 153 Decorate 55(@entryPointOutput) Location 0 154 2: TypeVoid 155 3: TypeFunction 2 156 6: TypeFloat 32 157 7: TypeFunction 6(float) 158 10: TypePointer Function 6(float) 159 11: TypeFunction 6(float) 10(ptr) 160 15: TypeVector 6(float) 4 161 16: TypeFunction 15(fvec4) 162 19: TypePointer Private 6(float) 163 20(x): 19(ptr) Variable Private 164 21: 6(float) Constant 1065353216 165 22(x): 19(ptr) Variable Private 166 23: 6(float) Constant 1073741824 167 24(x): 19(ptr) Variable Private 168 25: 6(float) Constant 1088421888 169 26: 6(float) Constant 1092616192 170 43: 6(float) Constant 1084227584 171 54: TypePointer Output 15(fvec4) 17255(@entryPointOutput): 54(ptr) Variable Output 173 4(main): 2 Function None 3 174 5: Label 175 Store 20(x) 21 176 Store 22(x) 23 177 Store 24(x) 25 178 56: 15(fvec4) FunctionCall 17(@main() 179 Store 55(@entryPointOutput) 56 180 Return 181 FunctionEnd 182 8(f1(): 6(float) Function None 7 183 9: Label 184 27: 6(float) Load 22(x) 185 28: 6(float) FAdd 27 26 186 Store 22(x) 28 187 29: 6(float) Load 22(x) 188 ReturnValue 29 189 FunctionEnd 190 13(f2(f1;): 6(float) Function None 11 191 12(p): 10(ptr) FunctionParameter 192 14: Label 193 32: 6(float) Load 12(p) 194 33: 6(float) Load 24(x) 195 34: 6(float) FAdd 33 32 196 Store 24(x) 34 197 35: 6(float) Load 24(x) 198 ReturnValue 35 199 FunctionEnd 200 17(@main(): 15(fvec4) Function None 16 201 18: Label 202 44(param): 10(ptr) Variable Function 203 47(param): 10(ptr) Variable Function 204 38: 6(float) Load 20(x) 205 39: 6(float) FunctionCall 8(f1() 206 40: 6(float) FAdd 38 39 207 41: 6(float) FunctionCall 8(f1() 208 42: 6(float) FAdd 40 41 209 Store 44(param) 43 210 45: 6(float) FunctionCall 13(f2(f1;) 44(param) 211 46: 6(float) FAdd 42 45 212 48: 6(float) Load 20(x) 213 Store 47(param) 48 214 49: 6(float) FunctionCall 13(f2(f1;) 47(param) 215 50: 6(float) FAdd 46 49 216 51: 15(fvec4) CompositeConstruct 50 50 50 50 217 ReturnValue 51 218 FunctionEnd 219