c76f5d23c7b7fc3835398d1e814d8c1d0672dc38
[platform/upstream/glslang.git] / Test / baseResults / hlsl.promote.vec1.frag.out
1 hlsl.promote.vec1.frag
2 Shader version: 450
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:3  Function Definition: @main( ( temp 4-component vector of float)
6 0:3    Function Parameters: 
7 0:?     Sequence
8 0:7      move second child to first child ( temp float)
9 0:7        'f1a' ( temp float)
10 0:7        Construct float ( temp float)
11 0:7          'f1b' ( temp 1-component vector of float)
12 0:8      move second child to first child ( temp 1-component vector of float)
13 0:8        'f1b' ( temp 1-component vector of float)
14 0:8        Construct float ( temp 1-component vector of float)
15 0:8          'f1a' ( temp float)
16 0:11      step ( temp 3-component vector of float)
17 0:11        Constant:
18 0:11          0.000000
19 0:11          0.000000
20 0:11          0.000000
21 0:11        'f3' ( temp 3-component vector of float)
22 0:13      sine ( temp float)
23 0:13        Construct float ( in float)
24 0:13          'f1b' ( temp 1-component vector of float)
25 0:15      Branch: Return with expression
26 0:?         Constant:
27 0:?           0.000000
28 0:?           0.000000
29 0:?           0.000000
30 0:?           0.000000
31 0:3  Function Definition: main( ( temp void)
32 0:3    Function Parameters: 
33 0:?     Sequence
34 0:3      move second child to first child ( temp 4-component vector of float)
35 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
36 0:3        Function Call: @main( ( temp 4-component vector of float)
37 0:?   Linker Objects
38 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
39
40
41 Linked fragment stage:
42
43
44 Shader version: 450
45 gl_FragCoord origin is upper left
46 0:? Sequence
47 0:3  Function Definition: @main( ( temp 4-component vector of float)
48 0:3    Function Parameters: 
49 0:?     Sequence
50 0:7      move second child to first child ( temp float)
51 0:7        'f1a' ( temp float)
52 0:7        Construct float ( temp float)
53 0:7          'f1b' ( temp 1-component vector of float)
54 0:8      move second child to first child ( temp 1-component vector of float)
55 0:8        'f1b' ( temp 1-component vector of float)
56 0:8        Construct float ( temp 1-component vector of float)
57 0:8          'f1a' ( temp float)
58 0:11      step ( temp 3-component vector of float)
59 0:11        Constant:
60 0:11          0.000000
61 0:11          0.000000
62 0:11          0.000000
63 0:11        'f3' ( temp 3-component vector of float)
64 0:13      sine ( temp float)
65 0:13        Construct float ( in float)
66 0:13          'f1b' ( temp 1-component vector of float)
67 0:15      Branch: Return with expression
68 0:?         Constant:
69 0:?           0.000000
70 0:?           0.000000
71 0:?           0.000000
72 0:?           0.000000
73 0:3  Function Definition: main( ( temp void)
74 0:3    Function Parameters: 
75 0:?     Sequence
76 0:3      move second child to first child ( temp 4-component vector of float)
77 0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
78 0:3        Function Call: @main( ( temp 4-component vector of float)
79 0:?   Linker Objects
80 0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
81
82 // Module Version 10000
83 // Generated by (magic number): 80001
84 // Id's are bound by 31
85
86                               Capability Shader
87                1:             ExtInstImport  "GLSL.std.450"
88                               MemoryModel Logical GLSL450
89                               EntryPoint Fragment 4  "main" 29
90                               ExecutionMode 4 OriginUpperLeft
91                               Name 4  "main"
92                               Name 9  "@main("
93                               Name 12  "f1a"
94                               Name 13  "f1b"
95                               Name 20  "f3"
96                               Name 29  "@entryPointOutput"
97                               Decorate 29(@entryPointOutput) Location 0
98                2:             TypeVoid
99                3:             TypeFunction 2
100                6:             TypeFloat 32
101                7:             TypeVector 6(float) 4
102                8:             TypeFunction 7(fvec4)
103               11:             TypePointer Function 6(float)
104               16:             TypeVector 6(float) 3
105               17:    6(float) Constant 0
106               18:   16(fvec3) ConstantComposite 17 17 17
107               19:             TypePointer Function 16(fvec3)
108               25:    7(fvec4) ConstantComposite 17 17 17 17
109               28:             TypePointer Output 7(fvec4)
110 29(@entryPointOutput):     28(ptr) Variable Output
111          4(main):           2 Function None 3
112                5:             Label
113               30:    7(fvec4) FunctionCall 9(@main()
114                               Store 29(@entryPointOutput) 30
115                               Return
116                               FunctionEnd
117        9(@main():    7(fvec4) Function None 8
118               10:             Label
119          12(f1a):     11(ptr) Variable Function
120          13(f1b):     11(ptr) Variable Function
121           20(f3):     19(ptr) Variable Function
122               14:    6(float) Load 13(f1b)
123                               Store 12(f1a) 14
124               15:    6(float) Load 12(f1a)
125                               Store 13(f1b) 15
126               21:   16(fvec3) Load 20(f3)
127               22:   16(fvec3) ExtInst 1(GLSL.std.450) 48(Step) 18 21
128               23:    6(float) Load 13(f1b)
129               24:    6(float) ExtInst 1(GLSL.std.450) 13(Sin) 23
130                               ReturnValue 25
131                               FunctionEnd