6e8998d9f5c369cce3e7d6a2155b2a7fb142cf81
[platform/upstream/glslang.git] / Test / baseResults / hlsl.pp.line.frag.out
1 hlsl.pp.line.frag
2 Shader version: 450
3 gl_FragCoord origin is upper left
4 0:? Sequence
5 0:4  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
6 0:4    Function Parameters: 
7 0:?     Sequence
8 0:124      Sequence
9 0:124        move second child to first child ( temp int)
10 0:124          'thisLineIs' ( temp int)
11 0:124          Constant:
12 0:124            124 (const int)
13 0:126      move second child to first child ( temp 4-component vector of float)
14 0:126        Color: direct index for structure ( temp 4-component vector of float)
15 0:126          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
16 0:126          Constant:
17 0:126            0 (const int)
18 0:?         Construct vec4 ( temp 4-component vector of float)
19 0:126          Convert int to float ( temp float)
20 0:126            'thisLineIs' ( temp int)
21 0:126          Constant:
22 0:126            0.000000
23 0:126          Constant:
24 0:126            0.000000
25 0:126          Constant:
26 0:126            1.000000
27 0:127      move second child to first child ( temp float)
28 0:127        Depth: direct index for structure ( temp float)
29 0:127          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
30 0:127          Constant:
31 0:127            1 (const int)
32 0:127        Constant:
33 0:127          1.000000
34 0:129      Branch: Return with expression
35 0:129        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
36 0:4  Function Definition: main( ( temp void)
37 0:4    Function Parameters: 
38 0:?     Sequence
39 0:4      Sequence
40 0:4        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
41 0:4          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
42 0:4          Function Call: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
43 0:4        move second child to first child ( temp 4-component vector of float)
44 0:?           'Color' (layout( location=0) out 4-component vector of float)
45 0:4          Color: direct index for structure ( temp 4-component vector of float)
46 0:4            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
47 0:4            Constant:
48 0:4              0 (const int)
49 0:4        move second child to first child ( temp float)
50 0:?           'Depth' ( out float FragDepth)
51 0:4          Depth: direct index for structure ( temp float)
52 0:4            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
53 0:4            Constant:
54 0:4              1 (const int)
55 0:?   Linker Objects
56 0:?     'Color' (layout( location=0) out 4-component vector of float)
57 0:?     'Depth' ( out float FragDepth)
58
59
60 Linked fragment stage:
61
62
63 Shader version: 450
64 gl_FragCoord origin is upper left
65 0:? Sequence
66 0:4  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
67 0:4    Function Parameters: 
68 0:?     Sequence
69 0:124      Sequence
70 0:124        move second child to first child ( temp int)
71 0:124          'thisLineIs' ( temp int)
72 0:124          Constant:
73 0:124            124 (const int)
74 0:126      move second child to first child ( temp 4-component vector of float)
75 0:126        Color: direct index for structure ( temp 4-component vector of float)
76 0:126          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
77 0:126          Constant:
78 0:126            0 (const int)
79 0:?         Construct vec4 ( temp 4-component vector of float)
80 0:126          Convert int to float ( temp float)
81 0:126            'thisLineIs' ( temp int)
82 0:126          Constant:
83 0:126            0.000000
84 0:126          Constant:
85 0:126            0.000000
86 0:126          Constant:
87 0:126            1.000000
88 0:127      move second child to first child ( temp float)
89 0:127        Depth: direct index for structure ( temp float)
90 0:127          'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
91 0:127          Constant:
92 0:127            1 (const int)
93 0:127        Constant:
94 0:127          1.000000
95 0:129      Branch: Return with expression
96 0:129        'psout' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
97 0:4  Function Definition: main( ( temp void)
98 0:4    Function Parameters: 
99 0:?     Sequence
100 0:4      Sequence
101 0:4        move second child to first child ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
102 0:4          'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
103 0:4          Function Call: @main( ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
104 0:4        move second child to first child ( temp 4-component vector of float)
105 0:?           'Color' (layout( location=0) out 4-component vector of float)
106 0:4          Color: direct index for structure ( temp 4-component vector of float)
107 0:4            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
108 0:4            Constant:
109 0:4              0 (const int)
110 0:4        move second child to first child ( temp float)
111 0:?           'Depth' ( out float FragDepth)
112 0:4          Depth: direct index for structure ( temp float)
113 0:4            'flattenTemp' ( temp structure{ temp 4-component vector of float Color,  temp float Depth})
114 0:4            Constant:
115 0:4              1 (const int)
116 0:?   Linker Objects
117 0:?     'Color' (layout( location=0) out 4-component vector of float)
118 0:?     'Depth' ( out float FragDepth)
119
120 // Module Version 10000
121 // Generated by (magic number): 80001
122 // Id's are bound by 42
123
124                               Capability Shader
125                1:             ExtInstImport  "GLSL.std.450"
126                               MemoryModel Logical GLSL450
127                               EntryPoint Fragment 4  "main" 35 39
128                               ExecutionMode 4 OriginUpperLeft
129                               Name 4  "main"
130                               Name 8  "PS_OUTPUT"
131                               MemberName 8(PS_OUTPUT) 0  "Color"
132                               MemberName 8(PS_OUTPUT) 1  "Depth"
133                               Name 10  "@main("
134                               Name 14  "thisLineIs"
135                               Name 17  "psout"
136                               Name 32  "flattenTemp"
137                               Name 35  "Color"
138                               Name 39  "Depth"
139                               Decorate 35(Color) Location 0
140                               Decorate 39(Depth) BuiltIn FragDepth
141                2:             TypeVoid
142                3:             TypeFunction 2
143                6:             TypeFloat 32
144                7:             TypeVector 6(float) 4
145     8(PS_OUTPUT):             TypeStruct 7(fvec4) 6(float)
146                9:             TypeFunction 8(PS_OUTPUT)
147               12:             TypeInt 32 1
148               13:             TypePointer Function 12(int)
149               15:     12(int) Constant 124
150               16:             TypePointer Function 8(PS_OUTPUT)
151               18:     12(int) Constant 0
152               21:    6(float) Constant 0
153               22:    6(float) Constant 1065353216
154               24:             TypePointer Function 7(fvec4)
155               26:     12(int) Constant 1
156               27:             TypePointer Function 6(float)
157               34:             TypePointer Output 7(fvec4)
158        35(Color):     34(ptr) Variable Output
159               38:             TypePointer Output 6(float)
160        39(Depth):     38(ptr) Variable Output
161          4(main):           2 Function None 3
162                5:             Label
163  32(flattenTemp):     16(ptr) Variable Function
164               33:8(PS_OUTPUT) FunctionCall 10(@main()
165                               Store 32(flattenTemp) 33
166               36:     24(ptr) AccessChain 32(flattenTemp) 18
167               37:    7(fvec4) Load 36
168                               Store 35(Color) 37
169               40:     27(ptr) AccessChain 32(flattenTemp) 26
170               41:    6(float) Load 40
171                               Store 39(Depth) 41
172                               Return
173                               FunctionEnd
174       10(@main():8(PS_OUTPUT) Function None 9
175               11:             Label
176   14(thisLineIs):     13(ptr) Variable Function
177        17(psout):     16(ptr) Variable Function
178                               Store 14(thisLineIs) 15
179               19:     12(int) Load 14(thisLineIs)
180               20:    6(float) ConvertSToF 19
181               23:    7(fvec4) CompositeConstruct 20 21 21 22
182               25:     24(ptr) AccessChain 17(psout) 18
183                               Store 25 23
184               28:     27(ptr) AccessChain 17(psout) 26
185                               Store 28 22
186               29:8(PS_OUTPUT) Load 17(psout)
187                               ReturnValue 29
188                               FunctionEnd