1 hlsl.scalar2matrix.frag 2 Shader version: 500 3 gl_FragCoord origin is upper left 4 0:? Sequence 5 0:2 Function Definition: Fn1(mf44; ( temp void) 6 0:2 Function Parameters: 7 0:2 'p' ( in 4X4 matrix of float) 8 0:5 Function Definition: @main( ( temp 4-component vector of float) 9 0:5 Function Parameters: 10 0:? Sequence 11 0:10 Sequence 12 0:10 move second child to first child ( temp 4X4 matrix of float) 13 0:10 'mat1' ( temp 4X4 matrix of float) 14 0:10 Constant: 15 0:10 0.250000 16 0:10 0.250000 17 0:10 0.250000 18 0:10 0.250000 19 0:10 0.250000 20 0:10 0.250000 21 0:10 0.250000 22 0:10 0.250000 23 0:10 0.250000 24 0:10 0.250000 25 0:10 0.250000 26 0:10 0.250000 27 0:10 0.250000 28 0:10 0.250000 29 0:10 0.250000 30 0:10 0.250000 31 0:11 Sequence 32 0:11 move second child to first child ( temp 4X4 matrix of float) 33 0:11 'mat2' ( temp 4X4 matrix of float) 34 0:11 Constant: 35 0:11 3.000000 36 0:11 3.100000 37 0:11 3.200000 38 0:11 0.000000 39 0:11 0.000000 40 0:11 0.000000 41 0:11 0.000000 42 0:11 0.000000 43 0:11 0.000000 44 0:11 0.000000 45 0:11 0.000000 46 0:11 0.000000 47 0:11 0.000000 48 0:11 0.000000 49 0:11 0.000000 50 0:11 0.000000 51 0:12 Sequence 52 0:12 move second child to first child ( temp 4X4 matrix of float) 53 0:12 'mat3' ( temp 4X4 matrix of float) 54 0:12 Constant: 55 0:12 0.375000 56 0:12 0.375000 57 0:12 0.375000 58 0:12 0.375000 59 0:12 0.375000 60 0:12 0.375000 61 0:12 0.375000 62 0:12 0.375000 63 0:12 0.375000 64 0:12 0.375000 65 0:12 0.375000 66 0:12 0.375000 67 0:12 0.375000 68 0:12 0.375000 69 0:12 0.375000 70 0:12 0.375000 71 0:16 move second child to first child ( temp 4X4 matrix of float) 72 0:16 'mat4' ( temp 4X4 matrix of float) 73 0:16 Constant: 74 0:16 0.750000 75 0:16 0.750000 76 0:16 0.750000 77 0:16 0.750000 78 0:16 0.750000 79 0:16 0.750000 80 0:16 0.750000 81 0:16 0.750000 82 0:16 0.750000 83 0:16 0.750000 84 0:16 0.750000 85 0:16 0.750000 86 0:16 0.750000 87 0:16 0.750000 88 0:16 0.750000 89 0:16 0.750000 90 0:17 move second child to first child ( temp 4X4 matrix of float) 91 0:17 'mat4' ( temp 4X4 matrix of float) 92 0:? Constant: 93 0:? 4.000000 94 0:? 4.100000 95 0:? 4.200000 96 0:? 0.000000 97 0:? 0.000000 98 0:? 0.000000 99 0:? 0.000000 100 0:? 0.000000 101 0:? 0.000000 102 0:? 0.000000 103 0:? 0.000000 104 0:? 0.000000 105 0:? 0.000000 106 0:? 0.000000 107 0:? 0.000000 108 0:? 0.000000 109 0:18 move second child to first child ( temp 4X4 matrix of float) 110 0:18 'mat4' ( temp 4X4 matrix of float) 111 0:18 Constant: 112 0:18 0.500000 113 0:18 0.500000 114 0:18 0.500000 115 0:18 0.500000 116 0:18 0.500000 117 0:18 0.500000 118 0:18 0.500000 119 0:18 0.500000 120 0:18 0.500000 121 0:18 0.500000 122 0:18 0.500000 123 0:18 0.500000 124 0:18 0.500000 125 0:18 0.500000 126 0:18 0.500000 127 0:18 0.500000 128 0:20 matrix scale second child into first child ( temp 4X4 matrix of float) 129 0:20 'mat4' ( temp 4X4 matrix of float) 130 0:20 Constant: 131 0:20 0.750000 132 0:21 add second child into first child ( temp 4X4 matrix of float) 133 0:21 'mat4' ( temp 4X4 matrix of float) 134 0:21 Constant: 135 0:21 0.750000 136 0:22 subtract second child into first child ( temp 4X4 matrix of float) 137 0:22 'mat4' ( temp 4X4 matrix of float) 138 0:22 Constant: 139 0:22 0.500000 140 0:23 divide second child into first child ( temp 4X4 matrix of float) 141 0:23 'mat4' ( temp 4X4 matrix of float) 142 0:23 Constant: 143 0:23 2.000000 144 0:25 Function Call: Fn1(mf44; ( temp void) 145 0:25 Constant: 146 0:25 5.000000 147 0:25 5.000000 148 0:25 5.000000 149 0:25 5.000000 150 0:25 5.000000 151 0:25 5.000000 152 0:25 5.000000 153 0:25 5.000000 154 0:25 5.000000 155 0:25 5.000000 156 0:25 5.000000 157 0:25 5.000000 158 0:25 5.000000 159 0:25 5.000000 160 0:25 5.000000 161 0:25 5.000000 162 0:27 Branch: Return with expression 163 0:27 add ( temp 4-component vector of float) 164 0:27 add ( temp 4-component vector of float) 165 0:27 Constant: 166 0:27 0.300000 167 0:27 0.300000 168 0:27 0.300000 169 0:27 0.300000 170 0:27 direct index ( temp 4-component vector of float) 171 0:27 'mat1' ( temp 4X4 matrix of float) 172 0:27 Constant: 173 0:27 1 (const int) 174 0:27 direct index ( temp 4-component vector of float) 175 0:27 'mat4' ( temp 4X4 matrix of float) 176 0:27 Constant: 177 0:27 2 (const int) 178 0:5 Function Definition: main( ( temp void) 179 0:5 Function Parameters: 180 0:? Sequence 181 0:5 move second child to first child ( temp 4-component vector of float) 182 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 183 0:5 Function Call: @main( ( temp 4-component vector of float) 184 0:? Linker Objects 185 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 186 187 188 Linked fragment stage: 189 190 191 Shader version: 500 192 gl_FragCoord origin is upper left 193 0:? Sequence 194 0:2 Function Definition: Fn1(mf44; ( temp void) 195 0:2 Function Parameters: 196 0:2 'p' ( in 4X4 matrix of float) 197 0:5 Function Definition: @main( ( temp 4-component vector of float) 198 0:5 Function Parameters: 199 0:? Sequence 200 0:10 Sequence 201 0:10 move second child to first child ( temp 4X4 matrix of float) 202 0:10 'mat1' ( temp 4X4 matrix of float) 203 0:10 Constant: 204 0:10 0.250000 205 0:10 0.250000 206 0:10 0.250000 207 0:10 0.250000 208 0:10 0.250000 209 0:10 0.250000 210 0:10 0.250000 211 0:10 0.250000 212 0:10 0.250000 213 0:10 0.250000 214 0:10 0.250000 215 0:10 0.250000 216 0:10 0.250000 217 0:10 0.250000 218 0:10 0.250000 219 0:10 0.250000 220 0:11 Sequence 221 0:11 move second child to first child ( temp 4X4 matrix of float) 222 0:11 'mat2' ( temp 4X4 matrix of float) 223 0:11 Constant: 224 0:11 3.000000 225 0:11 3.100000 226 0:11 3.200000 227 0:11 0.000000 228 0:11 0.000000 229 0:11 0.000000 230 0:11 0.000000 231 0:11 0.000000 232 0:11 0.000000 233 0:11 0.000000 234 0:11 0.000000 235 0:11 0.000000 236 0:11 0.000000 237 0:11 0.000000 238 0:11 0.000000 239 0:11 0.000000 240 0:12 Sequence 241 0:12 move second child to first child ( temp 4X4 matrix of float) 242 0:12 'mat3' ( temp 4X4 matrix of float) 243 0:12 Constant: 244 0:12 0.375000 245 0:12 0.375000 246 0:12 0.375000 247 0:12 0.375000 248 0:12 0.375000 249 0:12 0.375000 250 0:12 0.375000 251 0:12 0.375000 252 0:12 0.375000 253 0:12 0.375000 254 0:12 0.375000 255 0:12 0.375000 256 0:12 0.375000 257 0:12 0.375000 258 0:12 0.375000 259 0:12 0.375000 260 0:16 move second child to first child ( temp 4X4 matrix of float) 261 0:16 'mat4' ( temp 4X4 matrix of float) 262 0:16 Constant: 263 0:16 0.750000 264 0:16 0.750000 265 0:16 0.750000 266 0:16 0.750000 267 0:16 0.750000 268 0:16 0.750000 269 0:16 0.750000 270 0:16 0.750000 271 0:16 0.750000 272 0:16 0.750000 273 0:16 0.750000 274 0:16 0.750000 275 0:16 0.750000 276 0:16 0.750000 277 0:16 0.750000 278 0:16 0.750000 279 0:17 move second child to first child ( temp 4X4 matrix of float) 280 0:17 'mat4' ( temp 4X4 matrix of float) 281 0:? Constant: 282 0:? 4.000000 283 0:? 4.100000 284 0:? 4.200000 285 0:? 0.000000 286 0:? 0.000000 287 0:? 0.000000 288 0:? 0.000000 289 0:? 0.000000 290 0:? 0.000000 291 0:? 0.000000 292 0:? 0.000000 293 0:? 0.000000 294 0:? 0.000000 295 0:? 0.000000 296 0:? 0.000000 297 0:? 0.000000 298 0:18 move second child to first child ( temp 4X4 matrix of float) 299 0:18 'mat4' ( temp 4X4 matrix of float) 300 0:18 Constant: 301 0:18 0.500000 302 0:18 0.500000 303 0:18 0.500000 304 0:18 0.500000 305 0:18 0.500000 306 0:18 0.500000 307 0:18 0.500000 308 0:18 0.500000 309 0:18 0.500000 310 0:18 0.500000 311 0:18 0.500000 312 0:18 0.500000 313 0:18 0.500000 314 0:18 0.500000 315 0:18 0.500000 316 0:18 0.500000 317 0:20 matrix scale second child into first child ( temp 4X4 matrix of float) 318 0:20 'mat4' ( temp 4X4 matrix of float) 319 0:20 Constant: 320 0:20 0.750000 321 0:21 add second child into first child ( temp 4X4 matrix of float) 322 0:21 'mat4' ( temp 4X4 matrix of float) 323 0:21 Constant: 324 0:21 0.750000 325 0:22 subtract second child into first child ( temp 4X4 matrix of float) 326 0:22 'mat4' ( temp 4X4 matrix of float) 327 0:22 Constant: 328 0:22 0.500000 329 0:23 divide second child into first child ( temp 4X4 matrix of float) 330 0:23 'mat4' ( temp 4X4 matrix of float) 331 0:23 Constant: 332 0:23 2.000000 333 0:25 Function Call: Fn1(mf44; ( temp void) 334 0:25 Constant: 335 0:25 5.000000 336 0:25 5.000000 337 0:25 5.000000 338 0:25 5.000000 339 0:25 5.000000 340 0:25 5.000000 341 0:25 5.000000 342 0:25 5.000000 343 0:25 5.000000 344 0:25 5.000000 345 0:25 5.000000 346 0:25 5.000000 347 0:25 5.000000 348 0:25 5.000000 349 0:25 5.000000 350 0:25 5.000000 351 0:27 Branch: Return with expression 352 0:27 add ( temp 4-component vector of float) 353 0:27 add ( temp 4-component vector of float) 354 0:27 Constant: 355 0:27 0.300000 356 0:27 0.300000 357 0:27 0.300000 358 0:27 0.300000 359 0:27 direct index ( temp 4-component vector of float) 360 0:27 'mat1' ( temp 4X4 matrix of float) 361 0:27 Constant: 362 0:27 1 (const int) 363 0:27 direct index ( temp 4-component vector of float) 364 0:27 'mat4' ( temp 4X4 matrix of float) 365 0:27 Constant: 366 0:27 2 (const int) 367 0:5 Function Definition: main( ( temp void) 368 0:5 Function Parameters: 369 0:? Sequence 370 0:5 move second child to first child ( temp 4-component vector of float) 371 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 372 0:5 Function Call: @main( ( temp 4-component vector of float) 373 0:? Linker Objects 374 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 375 376 // Module Version 10000 377 // Generated by (magic number): 80007 378 // Id's are bound by 96 379 380 Capability Shader 381 1: ExtInstImport "GLSL.std.450" 382 MemoryModel Logical GLSL450 383 EntryPoint Fragment 4 "main" 94 384 ExecutionMode 4 OriginUpperLeft 385 Source HLSL 500 386 Name 4 "main" 387 Name 12 "Fn1(mf44;" 388 Name 11 "p" 389 Name 15 "@main(" 390 Name 17 "mat1" 391 Name 21 "mat2" 392 Name 29 "mat3" 393 Name 33 "mat4" 394 Name 77 "param" 395 Name 94 "@entryPointOutput" 396 Decorate 94(@entryPointOutput) Location 0 397 2: TypeVoid 398 3: TypeFunction 2 399 6: TypeFloat 32 400 7: TypeVector 6(float) 4 401 8: TypeMatrix 7(fvec4) 4 402 9: TypePointer Function 8 403 10: TypeFunction 2 9(ptr) 404 14: TypeFunction 7(fvec4) 405 18: 6(float) Constant 1048576000 406 19: 7(fvec4) ConstantComposite 18 18 18 18 407 20: 8 ConstantComposite 19 19 19 19 408 22: 6(float) Constant 1077936128 409 23: 6(float) Constant 1078355558 410 24: 6(float) Constant 1078774989 411 25: 6(float) Constant 0 412 26: 7(fvec4) ConstantComposite 22 23 24 25 413 27: 7(fvec4) ConstantComposite 25 25 25 25 414 28: 8 ConstantComposite 26 27 27 27 415 30: 6(float) Constant 1052770304 416 31: 7(fvec4) ConstantComposite 30 30 30 30 417 32: 8 ConstantComposite 31 31 31 31 418 34: 6(float) Constant 1061158912 419 35: 7(fvec4) ConstantComposite 34 34 34 34 420 36: 8 ConstantComposite 35 35 35 35 421 37: 6(float) Constant 1082130432 422 38: 6(float) Constant 1082340147 423 39: 6(float) Constant 1082549862 424 40: 7(fvec4) ConstantComposite 37 38 39 25 425 41: 8 ConstantComposite 40 27 27 27 426 42: 6(float) Constant 1056964608 427 43: 7(fvec4) ConstantComposite 42 42 42 42 428 44: 8 ConstantComposite 43 43 43 43 429 69: 6(float) Constant 1073741824 430 71: 6(float) Constant 1065353216 431 74: 6(float) Constant 1084227584 432 75: 7(fvec4) ConstantComposite 74 74 74 74 433 76: 8 ConstantComposite 75 75 75 75 434 79: 6(float) Constant 1050253722 435 80: 7(fvec4) ConstantComposite 79 79 79 79 436 81: TypeInt 32 1 437 82: 81(int) Constant 1 438 83: TypePointer Function 7(fvec4) 439 87: 81(int) Constant 2 440 93: TypePointer Output 7(fvec4) 441 94(@entryPointOutput): 93(ptr) Variable Output 442 4(main): 2 Function None 3 443 5: Label 444 95: 7(fvec4) FunctionCall 15(@main() 445 Store 94(@entryPointOutput) 95 446 Return 447 FunctionEnd 448 12(Fn1(mf44;): 2 Function None 10 449 11(p): 9(ptr) FunctionParameter 450 13: Label 451 Return 452 FunctionEnd 453 15(@main(): 7(fvec4) Function None 14 454 16: Label 455 17(mat1): 9(ptr) Variable Function 456 21(mat2): 9(ptr) Variable Function 457 29(mat3): 9(ptr) Variable Function 458 33(mat4): 9(ptr) Variable Function 459 77(param): 9(ptr) Variable Function 460 Store 17(mat1) 20 461 Store 21(mat2) 28 462 Store 29(mat3) 32 463 Store 33(mat4) 36 464 Store 33(mat4) 41 465 Store 33(mat4) 44 466 45: 8 Load 33(mat4) 467 46: 8 MatrixTimesScalar 45 34 468 Store 33(mat4) 46 469 47: 8 Load 33(mat4) 470 48: 7(fvec4) CompositeConstruct 34 34 34 34 471 49: 7(fvec4) CompositeExtract 47 0 472 50: 7(fvec4) FAdd 49 48 473 51: 7(fvec4) CompositeExtract 47 1 474 52: 7(fvec4) FAdd 51 48 475 53: 7(fvec4) CompositeExtract 47 2 476 54: 7(fvec4) FAdd 53 48 477 55: 7(fvec4) CompositeExtract 47 3 478 56: 7(fvec4) FAdd 55 48 479 57: 8 CompositeConstruct 50 52 54 56 480 Store 33(mat4) 57 481 58: 8 Load 33(mat4) 482 59: 7(fvec4) CompositeConstruct 42 42 42 42 483 60: 7(fvec4) CompositeExtract 58 0 484 61: 7(fvec4) FSub 60 59 485 62: 7(fvec4) CompositeExtract 58 1 486 63: 7(fvec4) FSub 62 59 487 64: 7(fvec4) CompositeExtract 58 2 488 65: 7(fvec4) FSub 64 59 489 66: 7(fvec4) CompositeExtract 58 3 490 67: 7(fvec4) FSub 66 59 491 68: 8 CompositeConstruct 61 63 65 67 492 Store 33(mat4) 68 493 70: 8 Load 33(mat4) 494 72: 6(float) FDiv 71 69 495 73: 8 MatrixTimesScalar 70 72 496 Store 33(mat4) 73 497 Store 77(param) 76 498 78: 2 FunctionCall 12(Fn1(mf44;) 77(param) 499 84: 83(ptr) AccessChain 17(mat1) 82 500 85: 7(fvec4) Load 84 501 86: 7(fvec4) FAdd 80 85 502 88: 83(ptr) AccessChain 33(mat4) 87 503 89: 7(fvec4) Load 88 504 90: 7(fvec4) FAdd 86 89 505 ReturnValue 90 506 FunctionEnd 507