• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1hlsl.matpack-pragma.frag
2WARNING: 0:19: 'random_string_foo' : unknown pack_matrix pragma value
3
4Shader version: 500
5gl_FragCoord origin is upper left
60:? Sequence
70:29  Function Definition: @main( ( temp 4-component vector of float)
80:29    Function Parameters:
90:?     Sequence
100:32      Branch: Return with expression
110:32        add ( temp 4-component vector of float)
120:32          add ( temp 4-component vector of float)
130:31            add ( temp 4-component vector of float)
140:31              add ( temp 4-component vector of float)
150:31                add ( temp 4-component vector of float)
160:31                  direct index (layout( row_major) temp 4-component vector of float)
170:31                    mat1: direct index for structure (layout( row_major) temp 4X4 matrix of float)
180:31                      g_MyBuffer1: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3})
190:31                        'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a})
200:31                        Constant:
210:31                          0 (const uint)
220:31                      Constant:
230:31                        0 (const int)
240:31                    Constant:
250:31                      0 (const int)
260:31                  direct index (layout( column_major) temp 4-component vector of float)
270:31                    mat2: direct index for structure (layout( column_major) temp 4X4 matrix of float)
280:31                      g_MyBuffer1: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3})
290:31                        'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a})
300:31                        Constant:
310:31                          0 (const uint)
320:31                      Constant:
330:31                        1 (const int)
340:31                    Constant:
350:31                      0 (const int)
360:31                direct index (layout( column_major) temp 4-component vector of float)
370:31                  mat3: direct index for structure (layout( column_major) temp 4X4 matrix of float)
380:31                    g_MyBuffer1: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3})
390:31                      'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a})
400:31                      Constant:
410:31                        0 (const uint)
420:31                    Constant:
430:31                      2 (const int)
440:31                  Constant:
450:31                    0 (const int)
460:32              direct index (layout( row_major) temp 4-component vector of float)
470:32                mat1: direct index for structure (layout( row_major) temp 4X4 matrix of float)
480:32                  g_MyBuffer2: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3})
490:32                    'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a})
500:32                    Constant:
510:32                      1 (const uint)
520:32                  Constant:
530:32                    0 (const int)
540:32                Constant:
550:32                  0 (const int)
560:32            direct index (layout( column_major) temp 4-component vector of float)
570:32              mat2: direct index for structure (layout( column_major) temp 4X4 matrix of float)
580:32                g_MyBuffer2: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3})
590:32                  'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a})
600:32                  Constant:
610:32                    1 (const uint)
620:32                Constant:
630:32                  1 (const int)
640:32              Constant:
650:32                0 (const int)
660:32          direct index (layout( row_major) temp 4-component vector of float)
670:32            mat3: direct index for structure (layout( row_major) temp 4X4 matrix of float)
680:32              g_MyBuffer2: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3})
690:32                'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a})
700:32                Constant:
710:32                  1 (const uint)
720:32              Constant:
730:32                2 (const int)
740:32            Constant:
750:32              0 (const int)
760:29  Function Definition: main( ( temp void)
770:29    Function Parameters:
780:?     Sequence
790:29      move second child to first child ( temp 4-component vector of float)
800:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
810:29        Function Call: @main( ( temp 4-component vector of float)
820:?   Linker Objects
830:?     'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a})
840:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
85
86
87Linked fragment stage:
88
89
90Shader version: 500
91gl_FragCoord origin is upper left
920:? Sequence
930:29  Function Definition: @main( ( temp 4-component vector of float)
940:29    Function Parameters:
950:?     Sequence
960:32      Branch: Return with expression
970:32        add ( temp 4-component vector of float)
980:32          add ( temp 4-component vector of float)
990:31            add ( temp 4-component vector of float)
1000:31              add ( temp 4-component vector of float)
1010:31                add ( temp 4-component vector of float)
1020:31                  direct index (layout( row_major) temp 4-component vector of float)
1030:31                    mat1: direct index for structure (layout( row_major) temp 4X4 matrix of float)
1040:31                      g_MyBuffer1: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3})
1050:31                        'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a})
1060:31                        Constant:
1070:31                          0 (const uint)
1080:31                      Constant:
1090:31                        0 (const int)
1100:31                    Constant:
1110:31                      0 (const int)
1120:31                  direct index (layout( column_major) temp 4-component vector of float)
1130:31                    mat2: direct index for structure (layout( column_major) temp 4X4 matrix of float)
1140:31                      g_MyBuffer1: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3})
1150:31                        'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a})
1160:31                        Constant:
1170:31                          0 (const uint)
1180:31                      Constant:
1190:31                        1 (const int)
1200:31                    Constant:
1210:31                      0 (const int)
1220:31                direct index (layout( column_major) temp 4-component vector of float)
1230:31                  mat3: direct index for structure (layout( column_major) temp 4X4 matrix of float)
1240:31                    g_MyBuffer1: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3})
1250:31                      'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a})
1260:31                      Constant:
1270:31                        0 (const uint)
1280:31                    Constant:
1290:31                      2 (const int)
1300:31                  Constant:
1310:31                    0 (const int)
1320:32              direct index (layout( row_major) temp 4-component vector of float)
1330:32                mat1: direct index for structure (layout( row_major) temp 4X4 matrix of float)
1340:32                  g_MyBuffer2: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3})
1350:32                    'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a})
1360:32                    Constant:
1370:32                      1 (const uint)
1380:32                  Constant:
1390:32                    0 (const int)
1400:32                Constant:
1410:32                  0 (const int)
1420:32            direct index (layout( column_major) temp 4-component vector of float)
1430:32              mat2: direct index for structure (layout( column_major) temp 4X4 matrix of float)
1440:32                g_MyBuffer2: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3})
1450:32                  'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a})
1460:32                  Constant:
1470:32                    1 (const uint)
1480:32                Constant:
1490:32                  1 (const int)
1500:32              Constant:
1510:32                0 (const int)
1520:32          direct index (layout( row_major) temp 4-component vector of float)
1530:32            mat3: direct index for structure (layout( row_major) temp 4X4 matrix of float)
1540:32              g_MyBuffer2: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3})
1550:32                'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a})
1560:32                Constant:
1570:32                  1 (const uint)
1580:32              Constant:
1590:32                2 (const int)
1600:32            Constant:
1610:32              0 (const int)
1620:29  Function Definition: main( ( temp void)
1630:29    Function Parameters:
1640:?     Sequence
1650:29      move second child to first child ( temp 4-component vector of float)
1660:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
1670:29        Function Call: @main( ( temp 4-component vector of float)
1680:?   Linker Objects
1690:?     'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a})
1700:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
171
172// Module Version 10000
173// Generated by (magic number): 80007
174// Id's are bound by 44
175
176                              Capability Shader
177               1:             ExtInstImport  "GLSL.std.450"
178                              MemoryModel Logical GLSL450
179                              EntryPoint Fragment 4  "main" 42
180                              ExecutionMode 4 OriginUpperLeft
181                              Source HLSL 500
182                              Name 4  "main"
183                              Name 9  "@main("
184                              Name 12  "MyBuffer1"
185                              MemberName 12(MyBuffer1) 0  "mat1"
186                              MemberName 12(MyBuffer1) 1  "mat2"
187                              MemberName 12(MyBuffer1) 2  "mat3"
188                              Name 13  "MyBuffer2"
189                              MemberName 13(MyBuffer2) 0  "mat1"
190                              MemberName 13(MyBuffer2) 1  "mat2"
191                              MemberName 13(MyBuffer2) 2  "mat3"
192                              Name 14  "Example"
193                              MemberName 14(Example) 0  "g_MyBuffer1"
194                              MemberName 14(Example) 1  "g_MyBuffer2"
195                              MemberName 14(Example) 2  "mat1a"
196                              Name 16  ""
197                              Name 42  "@entryPointOutput"
198                              MemberDecorate 12(MyBuffer1) 0 RowMajor
199                              MemberDecorate 12(MyBuffer1) 0 Offset 0
200                              MemberDecorate 12(MyBuffer1) 0 MatrixStride 16
201                              MemberDecorate 12(MyBuffer1) 1 ColMajor
202                              MemberDecorate 12(MyBuffer1) 1 Offset 64
203                              MemberDecorate 12(MyBuffer1) 1 MatrixStride 16
204                              MemberDecorate 12(MyBuffer1) 2 ColMajor
205                              MemberDecorate 12(MyBuffer1) 2 Offset 128
206                              MemberDecorate 12(MyBuffer1) 2 MatrixStride 16
207                              MemberDecorate 13(MyBuffer2) 0 RowMajor
208                              MemberDecorate 13(MyBuffer2) 0 Offset 0
209                              MemberDecorate 13(MyBuffer2) 0 MatrixStride 16
210                              MemberDecorate 13(MyBuffer2) 1 ColMajor
211                              MemberDecorate 13(MyBuffer2) 1 Offset 64
212                              MemberDecorate 13(MyBuffer2) 1 MatrixStride 16
213                              MemberDecorate 13(MyBuffer2) 2 RowMajor
214                              MemberDecorate 13(MyBuffer2) 2 Offset 128
215                              MemberDecorate 13(MyBuffer2) 2 MatrixStride 16
216                              MemberDecorate 14(Example) 0 Offset 0
217                              MemberDecorate 14(Example) 1 Offset 192
218                              MemberDecorate 14(Example) 2 RowMajor
219                              MemberDecorate 14(Example) 2 Offset 384
220                              MemberDecorate 14(Example) 2 MatrixStride 16
221                              Decorate 14(Example) Block
222                              Decorate 16 DescriptorSet 0
223                              Decorate 16 Binding 0
224                              Decorate 42(@entryPointOutput) Location 0
225               2:             TypeVoid
226               3:             TypeFunction 2
227               6:             TypeFloat 32
228               7:             TypeVector 6(float) 4
229               8:             TypeFunction 7(fvec4)
230              11:             TypeMatrix 7(fvec4) 4
231   12(MyBuffer1):             TypeStruct 11 11 11
232   13(MyBuffer2):             TypeStruct 11 11 11
233     14(Example):             TypeStruct 12(MyBuffer1) 13(MyBuffer2) 11
234              15:             TypePointer Uniform 14(Example)
235              16:     15(ptr) Variable Uniform
236              17:             TypeInt 32 1
237              18:     17(int) Constant 0
238              19:             TypePointer Uniform 7(fvec4)
239              22:     17(int) Constant 1
240              26:     17(int) Constant 2
241              41:             TypePointer Output 7(fvec4)
24242(@entryPointOutput):     41(ptr) Variable Output
243         4(main):           2 Function None 3
244               5:             Label
245              43:    7(fvec4) FunctionCall 9(@main()
246                              Store 42(@entryPointOutput) 43
247                              Return
248                              FunctionEnd
249       9(@main():    7(fvec4) Function None 8
250              10:             Label
251              20:     19(ptr) AccessChain 16 18 18 18
252              21:    7(fvec4) Load 20
253              23:     19(ptr) AccessChain 16 18 22 18
254              24:    7(fvec4) Load 23
255              25:    7(fvec4) FAdd 21 24
256              27:     19(ptr) AccessChain 16 18 26 18
257              28:    7(fvec4) Load 27
258              29:    7(fvec4) FAdd 25 28
259              30:     19(ptr) AccessChain 16 22 18 18
260              31:    7(fvec4) Load 30
261              32:    7(fvec4) FAdd 29 31
262              33:     19(ptr) AccessChain 16 22 22 18
263              34:    7(fvec4) Load 33
264              35:    7(fvec4) FAdd 32 34
265              36:     19(ptr) AccessChain 16 22 26 18
266              37:    7(fvec4) Load 36
267              38:    7(fvec4) FAdd 35 37
268                              ReturnValue 38
269                              FunctionEnd
270