1 spv.unit1.frag 2 Shader version: 460 3 gl_FragCoord origin is upper left 4 0:? Sequence 5 0:10 Function Definition: main( ( global void) 6 0:10 Function Parameters: 7 0:12 Sequence 8 0:12 move second child to first child ( temp highp float) 9 0:12 'f' ( global highp float) 10 0:12 Constant: 11 0:12 10.000000 12 0:13 Sequence 13 0:13 move second child to first child ( temp highp float) 14 0:13 'g' ( temp highp float) 15 0:13 Function Call: foo( ( global highp float) 16 0:14 add second child into first child ( temp highp float) 17 0:14 'f' ( global highp float) 18 0:14 'g' ( temp highp float) 19 0:15 add second child into first child ( temp highp float) 20 0:15 'f' ( global highp float) 21 0:15 direct index ( temp highp float) 22 0:15 'gl_FragCoord' ( gl_FragCoord highp 4-component vector of float FragCoord) 23 0:15 Constant: 24 0:15 1 (const int) 25 0:? Linker Objects 26 0:? 'f' ( global highp float) 27 0:? 'a1' ( global highp float) 28 0:? 'cout' ( out highp float) 29 30 spv.unit2.frag 31 Shader version: 410 32 gl_FragCoord origin is upper left 33 0:? Sequence 34 0:12 Function Definition: foo( ( global highp float) 35 0:12 Function Parameters: 36 0:14 Sequence 37 0:14 Sequence 38 0:14 move second child to first child ( temp highp float) 39 0:14 'h2' ( temp highp float) 40 0:14 add ( temp highp float) 41 0:14 component-wise multiply ( temp highp float) 42 0:14 Constant: 43 0:14 2.000000 44 0:14 'f' ( global highp float) 45 0:14 'cin' ( smooth in highp float) 46 0:15 Sequence 47 0:15 move second child to first child ( temp highp float) 48 0:15 'g2' ( temp highp float) 49 0:15 Function Call: bar( ( global highp float) 50 0:16 Branch: Return with expression 51 0:16 add ( temp highp float) 52 0:16 add ( temp highp float) 53 0:16 'h2' ( temp highp float) 54 0:16 'g2' ( temp highp float) 55 0:16 direct index ( temp highp float) 56 0:16 'gl_FragCoord' ( gl_FragCoord highp 4-component vector of float FragCoord) 57 0:16 Constant: 58 0:16 1 (const int) 59 0:? Linker Objects 60 0:? 'a2' ( global highp float) 61 0:? 'f' ( global highp float) 62 0:? 'cout' ( out highp float) 63 0:? 'cin' ( smooth in highp float) 64 65 spv.unit3.frag 66 Shader version: 460 67 gl_FragCoord origin is upper left 68 0:? Sequence 69 0:4 Sequence 70 0:4 move second child to first child ( temp highp float) 71 0:4 'h3' ( global highp float) 72 0:4 Constant: 73 0:4 3.000000 74 0:9 Function Definition: bar( ( global highp float) 75 0:9 Function Parameters: 76 0:11 Sequence 77 0:11 multiply second child into first child ( temp highp float) 78 0:11 'h3' ( global highp float) 79 0:11 'f' ( global highp float) 80 0:12 Sequence 81 0:12 move second child to first child ( temp highp float) 82 0:12 'g3' ( temp highp float) 83 0:12 component-wise multiply ( temp highp float) 84 0:12 Constant: 85 0:12 2.000000 86 0:12 'h3' ( global highp float) 87 0:13 move second child to first child ( temp highp float) 88 0:13 'cout' ( out highp float) 89 0:13 'g3' ( temp highp float) 90 0:14 Branch: Return with expression 91 0:14 add ( temp highp float) 92 0:14 add ( temp highp float) 93 0:14 'h3' ( global highp float) 94 0:14 'g3' ( temp highp float) 95 0:14 direct index ( temp highp float) 96 0:14 'gl_FragCoord' ( gl_FragCoord highp 4-component vector of float FragCoord) 97 0:14 Constant: 98 0:14 1 (const int) 99 0:? Linker Objects 100 0:? 'f' ( global highp float) 101 0:? 'h3' ( global highp float) 102 0:? 'cout' ( out highp float) 103 0:? 'cin' ( smooth in highp float) 104 105 106 Linked fragment stage: 107 108 109 Shader version: 460 110 gl_FragCoord origin is upper left 111 0:? Sequence 112 0:10 Function Definition: main( ( global void) 113 0:10 Function Parameters: 114 0:12 Sequence 115 0:12 move second child to first child ( temp highp float) 116 0:12 'f' ( global highp float) 117 0:12 Constant: 118 0:12 10.000000 119 0:13 Sequence 120 0:13 move second child to first child ( temp highp float) 121 0:13 'g' ( temp highp float) 122 0:13 Function Call: foo( ( global highp float) 123 0:14 add second child into first child ( temp highp float) 124 0:14 'f' ( global highp float) 125 0:14 'g' ( temp highp float) 126 0:15 add second child into first child ( temp highp float) 127 0:15 'f' ( global highp float) 128 0:15 direct index ( temp highp float) 129 0:15 'gl_FragCoord' ( gl_FragCoord highp 4-component vector of float FragCoord) 130 0:15 Constant: 131 0:15 1 (const int) 132 0:12 Function Definition: foo( ( global highp float) 133 0:12 Function Parameters: 134 0:14 Sequence 135 0:14 Sequence 136 0:14 move second child to first child ( temp highp float) 137 0:14 'h2' ( temp highp float) 138 0:14 add ( temp highp float) 139 0:14 component-wise multiply ( temp highp float) 140 0:14 Constant: 141 0:14 2.000000 142 0:14 'f' ( global highp float) 143 0:14 'cin' ( smooth in highp float) 144 0:15 Sequence 145 0:15 move second child to first child ( temp highp float) 146 0:15 'g2' ( temp highp float) 147 0:15 Function Call: bar( ( global highp float) 148 0:16 Branch: Return with expression 149 0:16 add ( temp highp float) 150 0:16 add ( temp highp float) 151 0:16 'h2' ( temp highp float) 152 0:16 'g2' ( temp highp float) 153 0:16 direct index ( temp highp float) 154 0:16 'gl_FragCoord' ( gl_FragCoord highp 4-component vector of float FragCoord) 155 0:16 Constant: 156 0:16 1 (const int) 157 0:4 Sequence 158 0:4 move second child to first child ( temp highp float) 159 0:4 'h3' ( global highp float) 160 0:4 Constant: 161 0:4 3.000000 162 0:9 Function Definition: bar( ( global highp float) 163 0:9 Function Parameters: 164 0:11 Sequence 165 0:11 multiply second child into first child ( temp highp float) 166 0:11 'h3' ( global highp float) 167 0:11 'f' ( global highp float) 168 0:12 Sequence 169 0:12 move second child to first child ( temp highp float) 170 0:12 'g3' ( temp highp float) 171 0:12 component-wise multiply ( temp highp float) 172 0:12 Constant: 173 0:12 2.000000 174 0:12 'h3' ( global highp float) 175 0:13 move second child to first child ( temp highp float) 176 0:13 'cout' ( out highp float) 177 0:13 'g3' ( temp highp float) 178 0:14 Branch: Return with expression 179 0:14 add ( temp highp float) 180 0:14 add ( temp highp float) 181 0:14 'h3' ( global highp float) 182 0:14 'g3' ( temp highp float) 183 0:14 direct index ( temp highp float) 184 0:14 'gl_FragCoord' ( gl_FragCoord highp 4-component vector of float FragCoord) 185 0:14 Constant: 186 0:14 1 (const int) 187 0:? Linker Objects 188 0:? 'f' ( global highp float) 189 0:? 'a1' ( global highp float) 190 0:? 'cout' ( out highp float) 191 0:? 'a2' ( global highp float) 192 0:? 'cin' ( smooth in highp float) 193 0:? 'h3' ( global highp float) 194 195 // Module Version 10000 196 // Generated by (magic number): 80007 197 // Id's are bound by 69 198 199 Capability Shader 200 1: ExtInstImport "GLSL.std.450" 201 MemoryModel Logical GLSL450 202 EntryPoint Fragment 4 "main" 25 37 57 203 ExecutionMode 4 OriginUpperLeft 204 Source GLSL 460 205 Name 4 "main" 206 Name 8 "foo(" 207 Name 10 "bar(" 208 Name 13 "h3" 209 Name 15 "f" 210 Name 18 "g" 211 Name 25 "gl_FragCoord" 212 Name 33 "h2" 213 Name 37 "cin" 214 Name 40 "g2" 215 Name 53 "g3" 216 Name 57 "cout" 217 Name 67 "a1" 218 Name 68 "a2" 219 Decorate 25(gl_FragCoord) BuiltIn FragCoord 220 2: TypeVoid 221 3: TypeFunction 2 222 6: TypeFloat 32 223 7: TypeFunction 6(float) 224 12: TypePointer Private 6(float) 225 13(h3): 12(ptr) Variable Private 226 14: 6(float) Constant 1077936128 227 15(f): 12(ptr) Variable Private 228 16: 6(float) Constant 1092616192 229 17: TypePointer Function 6(float) 230 23: TypeVector 6(float) 4 231 24: TypePointer Input 23(fvec4) 232 25(gl_FragCoord): 24(ptr) Variable Input 233 26: TypeInt 32 0 234 27: 26(int) Constant 1 235 28: TypePointer Input 6(float) 236 34: 6(float) Constant 1073741824 237 37(cin): 28(ptr) Variable Input 238 56: TypePointer Output 6(float) 239 57(cout): 56(ptr) Variable Output 240 67(a1): 12(ptr) Variable Private 241 68(a2): 12(ptr) Variable Private 242 4(main): 2 Function None 3 243 5: Label 244 18(g): 17(ptr) Variable Function 245 Store 13(h3) 14 246 Store 15(f) 16 247 19: 6(float) FunctionCall 8(foo() 248 Store 18(g) 19 249 20: 6(float) Load 18(g) 250 21: 6(float) Load 15(f) 251 22: 6(float) FAdd 21 20 252 Store 15(f) 22 253 29: 28(ptr) AccessChain 25(gl_FragCoord) 27 254 30: 6(float) Load 29 255 31: 6(float) Load 15(f) 256 32: 6(float) FAdd 31 30 257 Store 15(f) 32 258 Return 259 FunctionEnd 260 8(foo(): 6(float) Function None 7 261 9: Label 262 33(h2): 17(ptr) Variable Function 263 40(g2): 17(ptr) Variable Function 264 35: 6(float) Load 15(f) 265 36: 6(float) FMul 34 35 266 38: 6(float) Load 37(cin) 267 39: 6(float) FAdd 36 38 268 Store 33(h2) 39 269 41: 6(float) FunctionCall 10(bar() 270 Store 40(g2) 41 271 42: 6(float) Load 33(h2) 272 43: 6(float) Load 40(g2) 273 44: 6(float) FAdd 42 43 274 45: 28(ptr) AccessChain 25(gl_FragCoord) 27 275 46: 6(float) Load 45 276 47: 6(float) FAdd 44 46 277 ReturnValue 47 278 FunctionEnd 279 10(bar(): 6(float) Function None 7 280 11: Label 281 53(g3): 17(ptr) Variable Function 282 50: 6(float) Load 15(f) 283 51: 6(float) Load 13(h3) 284 52: 6(float) FMul 51 50 285 Store 13(h3) 52 286 54: 6(float) Load 13(h3) 287 55: 6(float) FMul 34 54 288 Store 53(g3) 55 289 58: 6(float) Load 53(g3) 290 Store 57(cout) 58 291 59: 6(float) Load 13(h3) 292 60: 6(float) Load 53(g3) 293 61: 6(float) FAdd 59 60 294 62: 28(ptr) AccessChain 25(gl_FragCoord) 27 295 63: 6(float) Load 62 296 64: 6(float) FAdd 61 63 297 ReturnValue 64 298 FunctionEnd 299