summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/baseResults/hlsl.frag.out
blob: cfed9051fbadc88883fb237d723e76fe7c6330dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
hlsl.frag
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:1  move second child to first child (temp 4-component vector of float)
0:1    'AmbientColor' (temp 4-component vector of float)
0:?     Constant:
0:?       1.000000
0:?       0.500000
0:?       0.000000
0:?       1.000000
0:2  move second child to first child (temp float)
0:2    'AmbientIntensity' (temp float)
0:2    Constant:
0:2      0.100000
0:13  Function Definition: PixelShaderFunction(vf4; (temp 4-component vector of float)
0:5    Function Parameters: 
0:5      'input' (temp 4-component vector of float)
0:?     Sequence
0:6      Branch: Return with expression
0:6        add (temp 4-component vector of float)
0:6          vector-scale (temp 4-component vector of float)
0:6            'input' (temp 4-component vector of float)
0:6            'AmbientIntensity' (temp float)
0:6          'AmbientColor' (temp 4-component vector of float)
0:7      Branch: Return with expression
0:7        add (temp 4-component vector of float)
0:7          component-wise multiply (temp 4-component vector of float)
0:7            'input' (temp 4-component vector of float)
0:7            'input' (temp 4-component vector of float)
0:7          component-wise multiply (temp 4-component vector of float)
0:7            'input' (temp 4-component vector of float)
0:7            'input' (temp 4-component vector of float)
0:8      Branch: Return with expression
0:8        add (temp 4-component vector of float)
0:8          add (temp 4-component vector of float)
0:8            'input' (temp 4-component vector of float)
0:8            component-wise multiply (temp 4-component vector of float)
0:8              'input' (temp 4-component vector of float)
0:8              'input' (temp 4-component vector of float)
0:8          'input' (temp 4-component vector of float)
0:9      Branch: Return with expression
0:9        component-wise multiply (temp 4-component vector of float)
0:9          Pre-Increment (temp 4-component vector of float)
0:9            'input' (temp 4-component vector of float)
0:9          Negate value (temp 4-component vector of float)
0:9            Negate value (temp 4-component vector of float)
0:9              Pre-Decrement (temp 4-component vector of float)
0:9                'input' (temp 4-component vector of float)
0:10      Branch: Return with expression
0:10        add (temp 4-component vector of float)
0:10          Post-Increment (temp 4-component vector of float)
0:10            'input' (temp 4-component vector of float)
0:10          Pre-Increment (temp 4-component vector of float)
0:10            'input' (temp 4-component vector of float)
0:11      Branch: Return with expression
0:11        sine (global 4-component vector of float)
0:11          'input' (temp 4-component vector of float)
0:?   Linker Objects
0:?     'AmbientColor' (temp 4-component vector of float)
0:?     'AmbientIntensity' (temp float)


Linked fragment stage:


Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:1  move second child to first child (temp 4-component vector of float)
0:1    'AmbientColor' (temp 4-component vector of float)
0:?     Constant:
0:?       1.000000
0:?       0.500000
0:?       0.000000
0:?       1.000000
0:2  move second child to first child (temp float)
0:2    'AmbientIntensity' (temp float)
0:2    Constant:
0:2      0.100000
0:13  Function Definition: PixelShaderFunction(vf4; (temp 4-component vector of float)
0:5    Function Parameters: 
0:5      'input' (temp 4-component vector of float)
0:?     Sequence
0:6      Branch: Return with expression
0:6        add (temp 4-component vector of float)
0:6          vector-scale (temp 4-component vector of float)
0:6            'input' (temp 4-component vector of float)
0:6            'AmbientIntensity' (temp float)
0:6          'AmbientColor' (temp 4-component vector of float)
0:7      Branch: Return with expression
0:7        add (temp 4-component vector of float)
0:7          component-wise multiply (temp 4-component vector of float)
0:7            'input' (temp 4-component vector of float)
0:7            'input' (temp 4-component vector of float)
0:7          component-wise multiply (temp 4-component vector of float)
0:7            'input' (temp 4-component vector of float)
0:7            'input' (temp 4-component vector of float)
0:8      Branch: Return with expression
0:8        add (temp 4-component vector of float)
0:8          add (temp 4-component vector of float)
0:8            'input' (temp 4-component vector of float)
0:8            component-wise multiply (temp 4-component vector of float)
0:8              'input' (temp 4-component vector of float)
0:8              'input' (temp 4-component vector of float)
0:8          'input' (temp 4-component vector of float)
0:9      Branch: Return with expression
0:9        component-wise multiply (temp 4-component vector of float)
0:9          Pre-Increment (temp 4-component vector of float)
0:9            'input' (temp 4-component vector of float)
0:9          Negate value (temp 4-component vector of float)
0:9            Negate value (temp 4-component vector of float)
0:9              Pre-Decrement (temp 4-component vector of float)
0:9                'input' (temp 4-component vector of float)
0:10      Branch: Return with expression
0:10        add (temp 4-component vector of float)
0:10          Post-Increment (temp 4-component vector of float)
0:10            'input' (temp 4-component vector of float)
0:10          Pre-Increment (temp 4-component vector of float)
0:10            'input' (temp 4-component vector of float)
0:11      Branch: Return with expression
0:11        sine (global 4-component vector of float)
0:11          'input' (temp 4-component vector of float)
0:?   Linker Objects
0:?     'AmbientColor' (temp 4-component vector of float)
0:?     'AmbientIntensity' (temp float)

// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 57

                              Capability Shader
               1:             ExtInstImport  "GLSL.std.450"
                              MemoryModel Logical GLSL450
                              EntryPoint Fragment 4  "PixelShaderFunction"
                              ExecutionMode 4 OriginUpperLeft
                              Source HLSL 450
                              Name 4  "PixelShaderFunction"
                              Name 9  "input"
                              Name 12  "AmbientIntensity"
                              Name 15  "AmbientColor"
               2:             TypeVoid
               3:             TypeFunction 2
               6:             TypeFloat 32
               7:             TypeVector 6(float) 4
               8:             TypePointer Function 7(fvec4)
              11:             TypePointer Function 6(float)
              36:    6(float) Constant 1065353216
4(PixelShaderFunction):           2 Function None 3
               5:             Label
        9(input):      8(ptr) Variable Function
12(AmbientIntensity):     11(ptr) Variable Function
15(AmbientColor):      8(ptr) Variable Function
              10:    7(fvec4) Load 9(input)
              13:    6(float) Load 12(AmbientIntensity)
              14:    7(fvec4) VectorTimesScalar 10 13
              16:    7(fvec4) Load 15(AmbientColor)
              17:    7(fvec4) FAdd 14 16
                              ReturnValue 17
                              FunctionEnd