~mmach/netext73/glslang

« back to all changes in this revision

Viewing changes to Test/baseResults/hlsl.tx.overload.frag.out

  • Committer: mmach
  • Date: 2020-02-05 18:22:02 UTC
  • Revision ID: netbit73@gmail.com-20200205182202-x6mj2xsqo1ngs0kq
8.13

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
hlsl.tx.overload.frag
 
2
Shader version: 500
 
3
gl_FragCoord origin is upper left
 
4
0:? Sequence
 
5
0:8  Function Definition: Func(t211; ( temp float)
 
6
0:8    Function Parameters: 
 
7
0:8      'DummyTex' ( in texture2D)
 
8
0:?     Sequence
 
9
0:8      Branch: Return with expression
 
10
0:8        Constant:
 
11
0:8          1.000000
 
12
0:9  Function Definition: Func(t21; ( temp 4-component vector of float)
 
13
0:9    Function Parameters: 
 
14
0:9      'DummyTex' ( in texture2D)
 
15
0:?     Sequence
 
16
0:9      Branch: Return with expression
 
17
0:?         Constant:
 
18
0:?           0.000000
 
19
0:?           0.000000
 
20
0:?           0.000000
 
21
0:?           0.000000
 
22
0:11  Function Definition: Func(I211; ( temp float)
 
23
0:11    Function Parameters: 
 
24
0:11      'DummyTex' (layout( r32f) in image2D)
 
25
0:?     Sequence
 
26
0:11      Branch: Return with expression
 
27
0:11        Constant:
 
28
0:11          1.000000
 
29
0:12  Function Definition: Func(I21; ( temp 4-component vector of float)
 
30
0:12    Function Parameters: 
 
31
0:12      'DummyTex' (layout( rgba32f) in image2D)
 
32
0:?     Sequence
 
33
0:12      Branch: Return with expression
 
34
0:?         Constant:
 
35
0:?           0.000000
 
36
0:?           0.000000
 
37
0:?           0.000000
 
38
0:?           0.000000
 
39
0:15  Function Definition: @main( ( temp 4-component vector of float)
 
40
0:15    Function Parameters: 
 
41
0:?     Sequence
 
42
0:16      Branch: Return with expression
 
43
0:16        add ( temp 4-component vector of float)
 
44
0:16          add ( temp 4-component vector of float)
 
45
0:16            add ( temp 4-component vector of float)
 
46
0:16              Function Call: Func(t211; ( temp float)
 
47
0:16                'tf1' ( uniform texture2D)
 
48
0:16              Function Call: Func(t21; ( temp 4-component vector of float)
 
49
0:16                'tf4' ( uniform texture2D)
 
50
0:16            Function Call: Func(I211; ( temp float)
 
51
0:16              'twf1' (layout( r32f) uniform image2D)
 
52
0:16          Function Call: Func(I21; ( temp 4-component vector of float)
 
53
0:16            'twf4' (layout( rgba32f) uniform image2D)
 
54
0:15  Function Definition: main( ( temp void)
 
55
0:15    Function Parameters: 
 
56
0:?     Sequence
 
57
0:15      move second child to first child ( temp 4-component vector of float)
 
58
0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
 
59
0:15        Function Call: @main( ( temp 4-component vector of float)
 
60
0:?   Linker Objects
 
61
0:?     'tf1' ( uniform texture2D)
 
62
0:?     'tf4' ( uniform texture2D)
 
63
0:?     'twf1' (layout( r32f) uniform image2D)
 
64
0:?     'twf4' (layout( rgba32f) uniform image2D)
 
65
0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
 
66
 
 
67
 
 
68
Linked fragment stage:
 
69
 
 
70
 
 
71
Shader version: 500
 
72
gl_FragCoord origin is upper left
 
73
0:? Sequence
 
74
0:8  Function Definition: Func(t211; ( temp float)
 
75
0:8    Function Parameters: 
 
76
0:8      'DummyTex' ( in texture2D)
 
77
0:?     Sequence
 
78
0:8      Branch: Return with expression
 
79
0:8        Constant:
 
80
0:8          1.000000
 
81
0:9  Function Definition: Func(t21; ( temp 4-component vector of float)
 
82
0:9    Function Parameters: 
 
83
0:9      'DummyTex' ( in texture2D)
 
84
0:?     Sequence
 
85
0:9      Branch: Return with expression
 
86
0:?         Constant:
 
87
0:?           0.000000
 
88
0:?           0.000000
 
89
0:?           0.000000
 
90
0:?           0.000000
 
91
0:11  Function Definition: Func(I211; ( temp float)
 
92
0:11    Function Parameters: 
 
93
0:11      'DummyTex' (layout( r32f) in image2D)
 
94
0:?     Sequence
 
95
0:11      Branch: Return with expression
 
96
0:11        Constant:
 
97
0:11          1.000000
 
98
0:12  Function Definition: Func(I21; ( temp 4-component vector of float)
 
99
0:12    Function Parameters: 
 
100
0:12      'DummyTex' (layout( rgba32f) in image2D)
 
101
0:?     Sequence
 
102
0:12      Branch: Return with expression
 
103
0:?         Constant:
 
104
0:?           0.000000
 
105
0:?           0.000000
 
106
0:?           0.000000
 
107
0:?           0.000000
 
108
0:15  Function Definition: @main( ( temp 4-component vector of float)
 
109
0:15    Function Parameters: 
 
110
0:?     Sequence
 
111
0:16      Branch: Return with expression
 
112
0:16        add ( temp 4-component vector of float)
 
113
0:16          add ( temp 4-component vector of float)
 
114
0:16            add ( temp 4-component vector of float)
 
115
0:16              Function Call: Func(t211; ( temp float)
 
116
0:16                'tf1' ( uniform texture2D)
 
117
0:16              Function Call: Func(t21; ( temp 4-component vector of float)
 
118
0:16                'tf4' ( uniform texture2D)
 
119
0:16            Function Call: Func(I211; ( temp float)
 
120
0:16              'twf1' (layout( r32f) uniform image2D)
 
121
0:16          Function Call: Func(I21; ( temp 4-component vector of float)
 
122
0:16            'twf4' (layout( rgba32f) uniform image2D)
 
123
0:15  Function Definition: main( ( temp void)
 
124
0:15    Function Parameters: 
 
125
0:?     Sequence
 
126
0:15      move second child to first child ( temp 4-component vector of float)
 
127
0:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
 
128
0:15        Function Call: @main( ( temp 4-component vector of float)
 
129
0:?   Linker Objects
 
130
0:?     'tf1' ( uniform texture2D)
 
131
0:?     'tf4' ( uniform texture2D)
 
132
0:?     'twf1' (layout( r32f) uniform image2D)
 
133
0:?     'twf4' (layout( rgba32f) uniform image2D)
 
134
0:?     '@entryPointOutput' (layout( location=0) out 4-component vector of float)
 
135
 
 
136
// Module Version 10000
 
137
// Generated by (magic number): 80008
 
138
// Id's are bound by 73
 
139
 
 
140
                              Capability Shader
 
141
               1:             ExtInstImport  "GLSL.std.450"
 
142
                              MemoryModel Logical GLSL450
 
143
                              EntryPoint Fragment 4  "main" 71
 
144
                              ExecutionMode 4 OriginUpperLeft
 
145
                              Source HLSL 500
 
146
                              Name 4  "main"
 
147
                              Name 11  "Func(t211;"
 
148
                              Name 10  "DummyTex"
 
149
                              Name 16  "Func(t21;"
 
150
                              Name 15  "DummyTex"
 
151
                              Name 22  "Func(I211;"
 
152
                              Name 21  "DummyTex"
 
153
                              Name 28  "Func(I21;"
 
154
                              Name 27  "DummyTex"
 
155
                              Name 31  "@main("
 
156
                              Name 45  "tf1"
 
157
                              Name 46  "param"
 
158
                              Name 49  "tf4"
 
159
                              Name 50  "param"
 
160
                              Name 56  "twf1"
 
161
                              Name 57  "param"
 
162
                              Name 63  "twf4"
 
163
                              Name 64  "param"
 
164
                              Name 71  "@entryPointOutput"
 
165
                              Decorate 45(tf1) DescriptorSet 0
 
166
                              Decorate 45(tf1) Binding 0
 
167
                              Decorate 49(tf4) DescriptorSet 0
 
168
                              Decorate 49(tf4) Binding 0
 
169
                              Decorate 56(twf1) DescriptorSet 0
 
170
                              Decorate 56(twf1) Binding 0
 
171
                              Decorate 63(twf4) DescriptorSet 0
 
172
                              Decorate 63(twf4) Binding 0
 
173
                              Decorate 71(@entryPointOutput) Location 0
 
174
               2:             TypeVoid
 
175
               3:             TypeFunction 2
 
176
               6:             TypeFloat 32
 
177
               7:             TypeImage 6(float) 2D sampled format:Unknown
 
178
               8:             TypePointer Function 7
 
179
               9:             TypeFunction 6(float) 8(ptr)
 
180
              13:             TypeVector 6(float) 4
 
181
              14:             TypeFunction 13(fvec4) 8(ptr)
 
182
              18:             TypeImage 6(float) 2D nonsampled format:R32f
 
183
              19:             TypePointer Function 18
 
184
              20:             TypeFunction 6(float) 19(ptr)
 
185
              24:             TypeImage 6(float) 2D nonsampled format:Rgba32f
 
186
              25:             TypePointer Function 24
 
187
              26:             TypeFunction 13(fvec4) 25(ptr)
 
188
              30:             TypeFunction 13(fvec4)
 
189
              33:    6(float) Constant 1065353216
 
190
              36:    6(float) Constant 0
 
191
              37:   13(fvec4) ConstantComposite 36 36 36 36
 
192
              44:             TypePointer UniformConstant 7
 
193
         45(tf1):     44(ptr) Variable UniformConstant
 
194
         49(tf4):     44(ptr) Variable UniformConstant
 
195
              55:             TypePointer UniformConstant 18
 
196
        56(twf1):     55(ptr) Variable UniformConstant
 
197
              62:             TypePointer UniformConstant 24
 
198
        63(twf4):     62(ptr) Variable UniformConstant
 
199
              70:             TypePointer Output 13(fvec4)
 
200
71(@entryPointOutput):     70(ptr) Variable Output
 
201
         4(main):           2 Function None 3
 
202
               5:             Label
 
203
              72:   13(fvec4) FunctionCall 31(@main()
 
204
                              Store 71(@entryPointOutput) 72
 
205
                              Return
 
206
                              FunctionEnd
 
207
  11(Func(t211;):    6(float) Function None 9
 
208
    10(DummyTex):      8(ptr) FunctionParameter
 
209
              12:             Label
 
210
                              ReturnValue 33
 
211
                              FunctionEnd
 
212
   16(Func(t21;):   13(fvec4) Function None 14
 
213
    15(DummyTex):      8(ptr) FunctionParameter
 
214
              17:             Label
 
215
                              ReturnValue 37
 
216
                              FunctionEnd
 
217
  22(Func(I211;):    6(float) Function None 20
 
218
    21(DummyTex):     19(ptr) FunctionParameter
 
219
              23:             Label
 
220
                              ReturnValue 33
 
221
                              FunctionEnd
 
222
   28(Func(I21;):   13(fvec4) Function None 26
 
223
    27(DummyTex):     25(ptr) FunctionParameter
 
224
              29:             Label
 
225
                              ReturnValue 37
 
226
                              FunctionEnd
 
227
      31(@main():   13(fvec4) Function None 30
 
228
              32:             Label
 
229
       46(param):      8(ptr) Variable Function
 
230
       50(param):      8(ptr) Variable Function
 
231
       57(param):     19(ptr) Variable Function
 
232
       64(param):     25(ptr) Variable Function
 
233
              47:           7 Load 45(tf1)
 
234
                              Store 46(param) 47
 
235
              48:    6(float) FunctionCall 11(Func(t211;) 46(param)
 
236
              51:           7 Load 49(tf4)
 
237
                              Store 50(param) 51
 
238
              52:   13(fvec4) FunctionCall 16(Func(t21;) 50(param)
 
239
              53:   13(fvec4) CompositeConstruct 48 48 48 48
 
240
              54:   13(fvec4) FAdd 53 52
 
241
              58:          18 Load 56(twf1)
 
242
                              Store 57(param) 58
 
243
              59:    6(float) FunctionCall 22(Func(I211;) 57(param)
 
244
              60:   13(fvec4) CompositeConstruct 59 59 59 59
 
245
              61:   13(fvec4) FAdd 54 60
 
246
              65:          24 Load 63(twf4)
 
247
                              Store 64(param) 65
 
248
              66:   13(fvec4) FunctionCall 28(Func(I21;) 64(param)
 
249
              67:   13(fvec4) FAdd 61 66
 
250
                              ReturnValue 67
 
251
                              FunctionEnd