1hlsl.scalar-length.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:2  Function Definition: @main( ( temp 4-component vector of float)
60:2    Function Parameters:
70:?     Sequence
80:3      Sequence
90:3        move second child to first child ( temp 4-component vector of float)
100:3          'test' ( temp 4-component vector of float)
110:3          Constant:
120:3            0.000000
130:3            1.000000
140:3            2.000000
150:3            3.000000
160:5      Branch: Return with expression
170:5        Construct vec4 ( temp 4-component vector of float)
180:5          length ( temp float)
190:5            direct index ( temp float)
200:5              'test' ( temp 4-component vector of float)
210:5              Constant:
220:5                3 (const int)
230:2  Function Definition: main( ( temp void)
240:2    Function Parameters:
250:?     Sequence
260:2      move second child to first child ( temp 4-component vector of float)
270:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
280:2        Function Call: @main( ( temp 4-component vector of float)
290:?   Linker Objects
300:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
31
32
33Linked fragment stage:
34
35
36Shader version: 500
37gl_FragCoord origin is upper left
380:? Sequence
390:2  Function Definition: @main( ( temp 4-component vector of float)
400:2    Function Parameters:
410:?     Sequence
420:3      Sequence
430:3        move second child to first child ( temp 4-component vector of float)
440:3          'test' ( temp 4-component vector of float)
450:3          Constant:
460:3            0.000000
470:3            1.000000
480:3            2.000000
490:3            3.000000
500:5      Branch: Return with expression
510:5        Construct vec4 ( temp 4-component vector of float)
520:5          length ( temp float)
530:5            direct index ( temp float)
540:5              'test' ( temp 4-component vector of float)
550:5              Constant:
560:5                3 (const int)
570:2  Function Definition: main( ( temp void)
580:2    Function Parameters:
590:?     Sequence
600:2      move second child to first child ( temp 4-component vector of float)
610:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
620:2        Function Call: @main( ( temp 4-component vector of float)
630:?   Linker Objects
640:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
65
66// Module Version 10000
67// Generated by (magic number): 80007
68// Id's are bound by 30
69
70                              Capability Shader
71               1:             ExtInstImport  "GLSL.std.450"
72                              MemoryModel Logical GLSL450
73                              EntryPoint Fragment 4  "main" 28
74                              ExecutionMode 4 OriginUpperLeft
75                              Source HLSL 500
76                              Name 4  "main"
77                              Name 9  "@main("
78                              Name 12  "test"
79                              Name 28  "@entryPointOutput"
80                              Decorate 28(@entryPointOutput) Location 0
81               2:             TypeVoid
82               3:             TypeFunction 2
83               6:             TypeFloat 32
84               7:             TypeVector 6(float) 4
85               8:             TypeFunction 7(fvec4)
86              11:             TypePointer Function 7(fvec4)
87              13:    6(float) Constant 0
88              14:    6(float) Constant 1065353216
89              15:    6(float) Constant 1073741824
90              16:    6(float) Constant 1077936128
91              17:    7(fvec4) ConstantComposite 13 14 15 16
92              18:             TypeInt 32 0
93              19:     18(int) Constant 3
94              20:             TypePointer Function 6(float)
95              27:             TypePointer Output 7(fvec4)
9628(@entryPointOutput):     27(ptr) Variable Output
97         4(main):           2 Function None 3
98               5:             Label
99              29:    7(fvec4) FunctionCall 9(@main()
100                              Store 28(@entryPointOutput) 29
101                              Return
102                              FunctionEnd
103       9(@main():    7(fvec4) Function None 8
104              10:             Label
105        12(test):     11(ptr) Variable Function
106                              Store 12(test) 17
107              21:     20(ptr) AccessChain 12(test) 19
108              22:    6(float) Load 21
109              23:    6(float) ExtInst 1(GLSL.std.450) 66(Length) 22
110              24:    7(fvec4) CompositeConstruct 23 23 23 23
111                              ReturnValue 24
112                              FunctionEnd
113