• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1hlsl.matNx1.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:3  Function Definition: TestMatNx1( ( temp void)
60:3    Function Parameters:
70:?     Sequence
80:13      Sequence
90:13        move second child to first child ( temp 1X1 matrix of float)
100:13          'r00' ( temp 1X1 matrix of float)
110:13          transpose ( temp 1X1 matrix of float)
120:13            'f1x1' ( temp 1X1 matrix of float)
130:14      Sequence
140:14        move second child to first child ( temp 1X2 matrix of float)
150:14          'r01' ( temp 1X2 matrix of float)
160:14          transpose ( temp 1X2 matrix of float)
170:14            'f2x1' ( temp 2X1 matrix of float)
180:15      Sequence
190:15        move second child to first child ( temp 1X3 matrix of float)
200:15          'r02' ( temp 1X3 matrix of float)
210:15          transpose ( temp 1X3 matrix of float)
220:15            'f3x1' ( temp 3X1 matrix of float)
230:16      Sequence
240:16        move second child to first child ( temp 1X4 matrix of float)
250:16          'r03' ( temp 1X4 matrix of float)
260:16          transpose ( temp 1X4 matrix of float)
270:16            'f4x1' ( temp 4X1 matrix of float)
280:18      Sequence
290:18        move second child to first child ( temp 1X1 matrix of float)
300:18          'r10' ( temp 1X1 matrix of float)
310:18          transpose ( temp 1X1 matrix of float)
320:18            'f1x1' ( temp 1X1 matrix of float)
330:19      Sequence
340:19        move second child to first child ( temp 2X1 matrix of float)
350:19          'r11' ( temp 2X1 matrix of float)
360:19          transpose ( temp 2X1 matrix of float)
370:19            'f1x2' ( temp 1X2 matrix of float)
380:20      Sequence
390:20        move second child to first child ( temp 3X1 matrix of float)
400:20          'r12' ( temp 3X1 matrix of float)
410:20          transpose ( temp 3X1 matrix of float)
420:20            'f1x3' ( temp 1X3 matrix of float)
430:21      Sequence
440:21        move second child to first child ( temp 4X1 matrix of float)
450:21          'r13' ( temp 4X1 matrix of float)
460:21          transpose ( temp 4X1 matrix of float)
470:21            'f1x4' ( temp 1X4 matrix of float)
480:27  Function Definition: @main( ( temp structure{ temp 4-component vector of float color})
490:27    Function Parameters:
500:?     Sequence
510:29      move second child to first child ( temp 4-component vector of float)
520:29        color: direct index for structure ( temp 4-component vector of float)
530:29          'ps_output' ( temp structure{ temp 4-component vector of float color})
540:29          Constant:
550:29            0 (const int)
560:29        Constant:
570:29          1.000000
580:29          1.000000
590:29          1.000000
600:29          1.000000
610:30      Branch: Return with expression
620:30        'ps_output' ( temp structure{ temp 4-component vector of float color})
630:27  Function Definition: main( ( temp void)
640:27    Function Parameters:
650:?     Sequence
660:27      Sequence
670:27        move second child to first child ( temp 4-component vector of float)
680:?           '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
690:27          color: direct index for structure ( temp 4-component vector of float)
700:27            Function Call: @main( ( temp structure{ temp 4-component vector of float color})
710:27            Constant:
720:27              0 (const int)
730:?   Linker Objects
740:?     '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
75
76
77Linked fragment stage:
78
79
80Shader version: 500
81gl_FragCoord origin is upper left
820:? Sequence
830:3  Function Definition: TestMatNx1( ( temp void)
840:3    Function Parameters:
850:?     Sequence
860:13      Sequence
870:13        move second child to first child ( temp 1X1 matrix of float)
880:13          'r00' ( temp 1X1 matrix of float)
890:13          transpose ( temp 1X1 matrix of float)
900:13            'f1x1' ( temp 1X1 matrix of float)
910:14      Sequence
920:14        move second child to first child ( temp 1X2 matrix of float)
930:14          'r01' ( temp 1X2 matrix of float)
940:14          transpose ( temp 1X2 matrix of float)
950:14            'f2x1' ( temp 2X1 matrix of float)
960:15      Sequence
970:15        move second child to first child ( temp 1X3 matrix of float)
980:15          'r02' ( temp 1X3 matrix of float)
990:15          transpose ( temp 1X3 matrix of float)
1000:15            'f3x1' ( temp 3X1 matrix of float)
1010:16      Sequence
1020:16        move second child to first child ( temp 1X4 matrix of float)
1030:16          'r03' ( temp 1X4 matrix of float)
1040:16          transpose ( temp 1X4 matrix of float)
1050:16            'f4x1' ( temp 4X1 matrix of float)
1060:18      Sequence
1070:18        move second child to first child ( temp 1X1 matrix of float)
1080:18          'r10' ( temp 1X1 matrix of float)
1090:18          transpose ( temp 1X1 matrix of float)
1100:18            'f1x1' ( temp 1X1 matrix of float)
1110:19      Sequence
1120:19        move second child to first child ( temp 2X1 matrix of float)
1130:19          'r11' ( temp 2X1 matrix of float)
1140:19          transpose ( temp 2X1 matrix of float)
1150:19            'f1x2' ( temp 1X2 matrix of float)
1160:20      Sequence
1170:20        move second child to first child ( temp 3X1 matrix of float)
1180:20          'r12' ( temp 3X1 matrix of float)
1190:20          transpose ( temp 3X1 matrix of float)
1200:20            'f1x3' ( temp 1X3 matrix of float)
1210:21      Sequence
1220:21        move second child to first child ( temp 4X1 matrix of float)
1230:21          'r13' ( temp 4X1 matrix of float)
1240:21          transpose ( temp 4X1 matrix of float)
1250:21            'f1x4' ( temp 1X4 matrix of float)
1260:27  Function Definition: @main( ( temp structure{ temp 4-component vector of float color})
1270:27    Function Parameters:
1280:?     Sequence
1290:29      move second child to first child ( temp 4-component vector of float)
1300:29        color: direct index for structure ( temp 4-component vector of float)
1310:29          'ps_output' ( temp structure{ temp 4-component vector of float color})
1320:29          Constant:
1330:29            0 (const int)
1340:29        Constant:
1350:29          1.000000
1360:29          1.000000
1370:29          1.000000
1380:29          1.000000
1390:30      Branch: Return with expression
1400:30        'ps_output' ( temp structure{ temp 4-component vector of float color})
1410:27  Function Definition: main( ( temp void)
1420:27    Function Parameters:
1430:?     Sequence
1440:27      Sequence
1450:27        move second child to first child ( temp 4-component vector of float)
1460:?           '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
1470:27          color: direct index for structure ( temp 4-component vector of float)
1480:27            Function Call: @main( ( temp structure{ temp 4-component vector of float color})
1490:27            Constant:
1500:27              0 (const int)
1510:?   Linker Objects
1520:?     '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
153
154Validation failed
155// Module Version 10000
156// Generated by (magic number): 80007
157// Id's are bound by 77
158
159                              Capability Shader
160               1:             ExtInstImport  "GLSL.std.450"
161                              MemoryModel Logical GLSL450
162                              EntryPoint Fragment 4  "main" 74
163                              ExecutionMode 4 OriginUpperLeft
164                              Source HLSL 500
165                              Name 4  "main"
166                              Name 6  "TestMatNx1("
167                              Name 10  "PS_OUTPUT"
168                              MemberName 10(PS_OUTPUT) 0  "color"
169                              Name 12  "@main("
170                              Name 17  "r00"
171                              Name 18  "f1x1"
172                              Name 24  "r01"
173                              Name 27  "f2x1"
174                              Name 33  "r02"
175                              Name 36  "f3x1"
176                              Name 41  "r03"
177                              Name 44  "f4x1"
178                              Name 47  "r10"
179                              Name 50  "r11"
180                              Name 51  "f1x2"
181                              Name 54  "r12"
182                              Name 55  "f1x3"
183                              Name 58  "r13"
184                              Name 59  "f1x4"
185                              Name 63  "ps_output"
186                              Name 74  "@entryPointOutput.color"
187                              Decorate 74(@entryPointOutput.color) Location 0
188               2:             TypeVoid
189               3:             TypeFunction 2
190               8:             TypeFloat 32
191               9:             TypeVector 8(float) 4
192   10(PS_OUTPUT):             TypeStruct 9(fvec4)
193              11:             TypeFunction 10(PS_OUTPUT)
194              14:             TypeVector 8(float) 1
195              15:             TypeMatrix 14(fvec) 1
196              16:             TypePointer Function 15
197              21:             TypeVector 8(float) 2
198              22:             TypeMatrix 21(fvec2) 1
199              23:             TypePointer Function 22
200              25:             TypeMatrix 14(fvec) 2
201              26:             TypePointer Function 25
202              30:             TypeVector 8(float) 3
203              31:             TypeMatrix 30(fvec3) 1
204              32:             TypePointer Function 31
205              34:             TypeMatrix 14(fvec) 3
206              35:             TypePointer Function 34
207              39:             TypeMatrix 9(fvec4) 1
208              40:             TypePointer Function 39
209              42:             TypeMatrix 14(fvec) 4
210              43:             TypePointer Function 42
211              62:             TypePointer Function 10(PS_OUTPUT)
212              64:             TypeInt 32 1
213              65:     64(int) Constant 0
214              66:    8(float) Constant 1065353216
215              67:    9(fvec4) ConstantComposite 66 66 66 66
216              68:             TypePointer Function 9(fvec4)
217              73:             TypePointer Output 9(fvec4)
21874(@entryPointOutput.color):     73(ptr) Variable Output
219         4(main):           2 Function None 3
220               5:             Label
221              75:10(PS_OUTPUT) FunctionCall 12(@main()
222              76:    9(fvec4) CompositeExtract 75 0
223                              Store 74(@entryPointOutput.color) 76
224                              Return
225                              FunctionEnd
226  6(TestMatNx1():           2 Function None 3
227               7:             Label
228         17(r00):     16(ptr) Variable Function
229        18(f1x1):     16(ptr) Variable Function
230         24(r01):     23(ptr) Variable Function
231        27(f2x1):     26(ptr) Variable Function
232         33(r02):     32(ptr) Variable Function
233        36(f3x1):     35(ptr) Variable Function
234         41(r03):     40(ptr) Variable Function
235        44(f4x1):     43(ptr) Variable Function
236         47(r10):     16(ptr) Variable Function
237         50(r11):     26(ptr) Variable Function
238        51(f1x2):     23(ptr) Variable Function
239         54(r12):     35(ptr) Variable Function
240        55(f1x3):     32(ptr) Variable Function
241         58(r13):     43(ptr) Variable Function
242        59(f1x4):     40(ptr) Variable Function
243              19:          15 Load 18(f1x1)
244              20:          15 Transpose 19
245                              Store 17(r00) 20
246              28:          25 Load 27(f2x1)
247              29:          22 Transpose 28
248                              Store 24(r01) 29
249              37:          34 Load 36(f3x1)
250              38:          31 Transpose 37
251                              Store 33(r02) 38
252              45:          42 Load 44(f4x1)
253              46:          39 Transpose 45
254                              Store 41(r03) 46
255              48:          15 Load 18(f1x1)
256              49:          15 Transpose 48
257                              Store 47(r10) 49
258              52:          22 Load 51(f1x2)
259              53:          25 Transpose 52
260                              Store 50(r11) 53
261              56:          31 Load 55(f1x3)
262              57:          34 Transpose 56
263                              Store 54(r12) 57
264              60:          39 Load 59(f1x4)
265              61:          42 Transpose 60
266                              Store 58(r13) 61
267                              Return
268                              FunctionEnd
269      12(@main():10(PS_OUTPUT) Function None 11
270              13:             Label
271   63(ps_output):     62(ptr) Variable Function
272              69:     68(ptr) AccessChain 63(ps_output) 65
273                              Store 69 67
274              70:10(PS_OUTPUT) Load 63(ps_output)
275                              ReturnValue 70
276                              FunctionEnd
277