1hlsl.amend.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:3  Sequence
60:3    move second child to first child ( temp 4-component vector of float)
70:3      'm' ( global 4-component vector of float)
80:3      vector-scale ( temp 4-component vector of float)
90:3        a: direct index for structure ( uniform 4-component vector of float)
100:3          'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
110:3          Constant:
120:3            0 (const uint)
130:3        b: direct index for structure ( uniform float)
140:3          'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
150:3          Constant:
160:3            1 (const uint)
170:5  Function Definition: @f1( ( temp void)
180:5    Function Parameters:
190:?     Sequence
200:6      vector-scale ( temp 4-component vector of float)
210:6        a: direct index for structure ( uniform 4-component vector of float)
220:6          'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
230:6          Constant:
240:6            0 (const uint)
250:6        b: direct index for structure ( uniform float)
260:6          'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
270:6          Constant:
280:6            1 (const uint)
290:5  Function Definition: f1( ( temp void)
300:5    Function Parameters:
310:?     Sequence
320:5      Function Call: @f1( ( temp void)
330:12  Function Definition: f2( ( temp void)
340:12    Function Parameters:
350:?     Sequence
360:13      add ( temp float)
370:13        add ( temp float)
380:13          direct index ( temp float)
390:13            a: direct index for structure ( uniform 4-component vector of float)
400:13              'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
410:13              Constant:
420:13                0 (const uint)
430:13            Constant:
440:13              0 (const int)
450:13          b: direct index for structure ( uniform float)
460:13            'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
470:13            Constant:
480:13              1 (const uint)
490:13        direct index ( temp float)
500:13          c: direct index for structure ( uniform 3-component vector of float)
510:13            'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
520:13            Constant:
530:13              2 (const uint)
540:13          Constant:
550:13            0 (const int)
560:17  Function Definition: f3( ( temp void)
570:17    Function Parameters:
580:?     Sequence
590:18      c: direct index for structure ( uniform 3-component vector of float)
600:18        'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
610:18        Constant:
620:18          2 (const uint)
630:24  Function Definition: f4( ( temp void)
640:24    Function Parameters:
650:?     Sequence
660:25      vector-scale ( temp 4-component vector of float)
670:25        Convert int to float ( temp float)
680:25          d: direct index for structure ( uniform int)
690:25            'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
700:25            Constant:
710:25              3 (const uint)
720:25        a: direct index for structure ( uniform 4-component vector of float)
730:25          'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
740:25          Constant:
750:25            0 (const uint)
760:?   Linker Objects
770:?     'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
780:?     'm' ( global 4-component vector of float)
79
80
81Linked fragment stage:
82
83
84Shader version: 500
85gl_FragCoord origin is upper left
860:? Sequence
870:3  Sequence
880:3    move second child to first child ( temp 4-component vector of float)
890:3      'm' ( global 4-component vector of float)
900:3      vector-scale ( temp 4-component vector of float)
910:3        a: direct index for structure ( uniform 4-component vector of float)
920:3          'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
930:3          Constant:
940:3            0 (const uint)
950:3        b: direct index for structure ( uniform float)
960:3          'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
970:3          Constant:
980:3            1 (const uint)
990:5  Function Definition: @f1( ( temp void)
1000:5    Function Parameters:
1010:?     Sequence
1020:6      vector-scale ( temp 4-component vector of float)
1030:6        a: direct index for structure ( uniform 4-component vector of float)
1040:6          'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
1050:6          Constant:
1060:6            0 (const uint)
1070:6        b: direct index for structure ( uniform float)
1080:6          'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
1090:6          Constant:
1100:6            1 (const uint)
1110:5  Function Definition: f1( ( temp void)
1120:5    Function Parameters:
1130:?     Sequence
1140:5      Function Call: @f1( ( temp void)
1150:12  Function Definition: f2( ( temp void)
1160:12    Function Parameters:
1170:?     Sequence
1180:13      add ( temp float)
1190:13        add ( temp float)
1200:13          direct index ( temp float)
1210:13            a: direct index for structure ( uniform 4-component vector of float)
1220:13              'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
1230:13              Constant:
1240:13                0 (const uint)
1250:13            Constant:
1260:13              0 (const int)
1270:13          b: direct index for structure ( uniform float)
1280:13            'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
1290:13            Constant:
1300:13              1 (const uint)
1310:13        direct index ( temp float)
1320:13          c: direct index for structure ( uniform 3-component vector of float)
1330:13            'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
1340:13            Constant:
1350:13              2 (const uint)
1360:13          Constant:
1370:13            0 (const int)
1380:17  Function Definition: f3( ( temp void)
1390:17    Function Parameters:
1400:?     Sequence
1410:18      c: direct index for structure ( uniform 3-component vector of float)
1420:18        'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
1430:18        Constant:
1440:18          2 (const uint)
1450:24  Function Definition: f4( ( temp void)
1460:24    Function Parameters:
1470:?     Sequence
1480:25      vector-scale ( temp 4-component vector of float)
1490:25        Convert int to float ( temp float)
1500:25          d: direct index for structure ( uniform int)
1510:25            'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
1520:25            Constant:
1530:25              3 (const uint)
1540:25        a: direct index for structure ( uniform 4-component vector of float)
1550:25          'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
1560:25          Constant:
1570:25            0 (const uint)
1580:?   Linker Objects
1590:?     'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float a,  uniform float b,  uniform 3-component vector of float c,  uniform int d,  uniform int e})
1600:?     'm' ( global 4-component vector of float)
161
162// Module Version 10000
163// Generated by (magic number): 8000a
164// Id's are bound by 57
165
166                              Capability Shader
167               1:             ExtInstImport  "GLSL.std.450"
168                              MemoryModel Logical GLSL450
169                              EntryPoint Fragment 4  "f1"
170                              ExecutionMode 4 OriginUpperLeft
171                              Source HLSL 500
172                              Name 4  "f1"
173                              Name 6  "@f1("
174                              Name 8  "f2("
175                              Name 10  "f3("
176                              Name 12  "f4("
177                              Name 17  "m"
178                              Name 20  "$Global"
179                              MemberName 20($Global) 0  "a"
180                              MemberName 20($Global) 1  "b"
181                              MemberName 20($Global) 2  "c"
182                              MemberName 20($Global) 3  "d"
183                              MemberName 20($Global) 4  "e"
184                              Name 22  ""
185                              MemberDecorate 20($Global) 0 Offset 0
186                              MemberDecorate 20($Global) 1 Offset 16
187                              MemberDecorate 20($Global) 2 Offset 32
188                              MemberDecorate 20($Global) 3 Offset 44
189                              MemberDecorate 20($Global) 4 Offset 48
190                              Decorate 20($Global) Block
191                              Decorate 22 DescriptorSet 0
192                              Decorate 22 Binding 0
193               2:             TypeVoid
194               3:             TypeFunction 2
195              14:             TypeFloat 32
196              15:             TypeVector 14(float) 4
197              16:             TypePointer Private 15(fvec4)
198           17(m):     16(ptr) Variable Private
199              18:             TypeVector 14(float) 3
200              19:             TypeInt 32 1
201     20($Global):             TypeStruct 15(fvec4) 14(float) 18(fvec3) 19(int) 19(int)
202              21:             TypePointer Uniform 20($Global)
203              22:     21(ptr) Variable Uniform
204              23:     19(int) Constant 0
205              24:             TypePointer Uniform 15(fvec4)
206              27:     19(int) Constant 1
207              28:             TypePointer Uniform 14(float)
208              38:             TypeInt 32 0
209              39:     38(int) Constant 0
210              45:     19(int) Constant 2
211              49:     19(int) Constant 3
212              50:             TypePointer Uniform 19(int)
213           4(f1):           2 Function None 3
214               5:             Label
215              25:     24(ptr) AccessChain 22 23
216              26:   15(fvec4) Load 25
217              29:     28(ptr) AccessChain 22 27
218              30:   14(float) Load 29
219              31:   15(fvec4) VectorTimesScalar 26 30
220                              Store 17(m) 31
221              37:           2 FunctionCall 6(@f1()
222                              Return
223                              FunctionEnd
224         6(@f1():           2 Function None 3
225               7:             Label
226              32:     24(ptr) AccessChain 22 23
227              33:   15(fvec4) Load 32
228              34:     28(ptr) AccessChain 22 27
229              35:   14(float) Load 34
230              36:   15(fvec4) VectorTimesScalar 33 35
231                              Return
232                              FunctionEnd
233          8(f2():           2 Function None 3
234               9:             Label
235              40:     28(ptr) AccessChain 22 23 39
236              41:   14(float) Load 40
237              42:     28(ptr) AccessChain 22 27
238              43:   14(float) Load 42
239              44:   14(float) FAdd 41 43
240              46:     28(ptr) AccessChain 22 45 39
241              47:   14(float) Load 46
242              48:   14(float) FAdd 44 47
243                              Return
244                              FunctionEnd
245         10(f3():           2 Function None 3
246              11:             Label
247                              Return
248                              FunctionEnd
249         12(f4():           2 Function None 3
250              13:             Label
251              51:     50(ptr) AccessChain 22 49
252              52:     19(int) Load 51
253              53:   14(float) ConvertSToF 52
254              54:     24(ptr) AccessChain 22 23
255              55:   15(fvec4) Load 54
256              56:   15(fvec4) VectorTimesScalar 55 53
257                              Return
258                              FunctionEnd
259