a0603a461c3f74844f5cbb717ff1b4b8aa2d58a1
[platform/upstream/glslang.git] / Test / baseResults / hlsl.scalar-length.frag.out
1 hlsl.scalar-length.frag
2 Shader version: 450
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:2  Function Definition: @main( ( temp 4-component vector of float)
6 0:2    Function Parameters: 
7 0:?     Sequence
8 0:3      Sequence
9 0:3        move second child to first child ( temp 4-component vector of float)
10 0:3          'test' ( temp 4-component vector of float)
11 0:3          Constant:
12 0:3            0.000000
13 0:3            1.000000
14 0:3            2.000000
15 0:3            3.000000
16 0:5      Branch: Return with expression
17 0:5        Construct vec4 ( temp 4-component vector of float)
18 0:5          length ( temp float)
19 0:5            direct index ( temp float)
20 0:5              'test' ( temp 4-component vector of float)
21 0:5              Constant:
22 0:5                3 (const int)
23 0:2  Function Definition: main( ( temp void)
24 0:2    Function Parameters: 
25 0:?     Sequence
26 0:2      move second child to first child ( temp 4-component vector of float)
27 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
28 0:2        Function Call: @main( ( temp 4-component vector of float)
29 0:?   Linker Objects
30 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
31
32
33 Linked fragment stage:
34
35
36 Shader version: 450
37 gl_FragCoord origin is upper left
38 0:? Sequence
39 0:2  Function Definition: @main( ( temp 4-component vector of float)
40 0:2    Function Parameters: 
41 0:?     Sequence
42 0:3      Sequence
43 0:3        move second child to first child ( temp 4-component vector of float)
44 0:3          'test' ( temp 4-component vector of float)
45 0:3          Constant:
46 0:3            0.000000
47 0:3            1.000000
48 0:3            2.000000
49 0:3            3.000000
50 0:5      Branch: Return with expression
51 0:5        Construct vec4 ( temp 4-component vector of float)
52 0:5          length ( temp float)
53 0:5            direct index ( temp float)
54 0:5              'test' ( temp 4-component vector of float)
55 0:5              Constant:
56 0:5                3 (const int)
57 0:2  Function Definition: main( ( temp void)
58 0:2    Function Parameters: 
59 0:?     Sequence
60 0:2      move second child to first child ( temp 4-component vector of float)
61 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
62 0:2        Function Call: @main( ( temp 4-component vector of float)
63 0:?   Linker Objects
64 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
65
66 // Module Version 10000
67 // Generated by (magic number): 80001
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                               Name 4  "main"
76                               Name 9  "@main("
77                               Name 12  "test"
78                               Name 28  "@entryPointOutput"
79                               Decorate 28(@entryPointOutput) Location 0
80                2:             TypeVoid
81                3:             TypeFunction 2
82                6:             TypeFloat 32
83                7:             TypeVector 6(float) 4
84                8:             TypeFunction 7(fvec4)
85               11:             TypePointer Function 7(fvec4)
86               13:    6(float) Constant 0
87               14:    6(float) Constant 1065353216
88               15:    6(float) Constant 1073741824
89               16:    6(float) Constant 1077936128
90               17:    7(fvec4) ConstantComposite 13 14 15 16
91               18:             TypeInt 32 0
92               19:     18(int) Constant 3
93               20:             TypePointer Function 6(float)
94               27:             TypePointer Output 7(fvec4)
95 28(@entryPointOutput):     27(ptr) Variable Output
96          4(main):           2 Function None 3
97                5:             Label
98               29:    7(fvec4) FunctionCall 9(@main()
99                               Store 28(@entryPointOutput) 29
100                               Return
101                               FunctionEnd
102        9(@main():    7(fvec4) Function None 8
103               10:             Label
104         12(test):     11(ptr) Variable Function
105                               Store 12(test) 17
106               21:     20(ptr) AccessChain 12(test) 19
107               22:    6(float) Load 21
108               23:    6(float) ExtInst 1(GLSL.std.450) 66(Length) 22
109               24:    7(fvec4) CompositeConstruct 23 23 23 23
110                               ReturnValue 24
111                               FunctionEnd