blob: a5a59442cb252bb6ea47fff167c069b729e86054 [file] [log] [blame]
John Kessenich0e6e2ff2017-07-16 05:46:13 -06001hlsl.flattenOpaqueInit.vert
John Kessenichb2ae1d02018-03-06 14:48:46 -07002WARNING: AST will form illegal SPIR-V; need to transform to legalize
John Kessenich0e6e2ff2017-07-16 05:46:13 -06003Shader version: 500
40:? Sequence
50:5 Function Definition: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
60:5 Function Parameters:
John Kessenichdc005fb2017-11-16 16:03:18 -070070:5 'tex' ( in structure{ temp sampler smpl, temp texture2D tex})
John Kessenich0e6e2ff2017-07-16 05:46:13 -060080:? Sequence
90:6 Branch: Return with expression
100:6 texture ( temp 4-component vector of float)
110:6 Construct combined texture-sampler ( temp sampler2D)
John Kessenichdc005fb2017-11-16 16:03:18 -0700120:6 tex: direct index for structure ( temp texture2D)
130:6 'tex' ( in structure{ temp sampler smpl, temp texture2D tex})
140:6 Constant:
150:6 1 (const int)
160:6 smpl: direct index for structure ( temp sampler)
170:6 'tex' ( in structure{ temp sampler smpl, temp texture2D tex})
180:6 Constant:
190:6 0 (const int)
John Kessenich0e6e2ff2017-07-16 05:46:13 -0600200:? Constant:
210:? 0.300000
220:? 0.400000
John Kessenich03e63fa2017-08-15 10:18:32 -0600230:10 Function Definition: fillOpaque( ( temp structure{ temp sampler smpl, temp texture2D tex})
John Kessenich0e6e2ff2017-07-16 05:46:13 -0600240:10 Function Parameters:
250:? Sequence
John Kessenich15fa7ef2017-09-07 04:33:11 -0600260:12 move second child to first child ( temp sampler)
John Kessenichdc005fb2017-11-16 16:03:18 -0700270:12 smpl: direct index for structure ( temp sampler)
280:12 't' ( temp structure{ temp sampler smpl, temp texture2D tex})
290:12 Constant:
300:12 0 (const int)
John Kessenich15fa7ef2017-09-07 04:33:11 -0600310:12 'g_tInputTexture_sampler' ( uniform sampler)
320:13 move second child to first child ( temp texture2D)
John Kessenichdc005fb2017-11-16 16:03:18 -0700330:13 tex: direct index for structure ( temp texture2D)
340:13 't' ( temp structure{ temp sampler smpl, temp texture2D tex})
350:13 Constant:
360:13 1 (const int)
John Kessenich15fa7ef2017-09-07 04:33:11 -0600370:13 'g_tInputTexture' ( uniform texture2D)
John Kessenich03e63fa2017-08-15 10:18:32 -0600380:14 Branch: Return with expression
390:14 't' ( temp structure{ temp sampler smpl, temp texture2D tex})
400:18 Function Definition: @main( ( temp 4-component vector of float)
410:18 Function Parameters:
420:? Sequence
John Kessenich15fa7ef2017-09-07 04:33:11 -0600430:19 Sequence
John Kessenichdc005fb2017-11-16 16:03:18 -0700440:19 move second child to first child ( temp structure{ temp sampler smpl, temp texture2D tex})
450:19 'tex1' ( temp structure{ temp sampler smpl, temp texture2D tex})
460:19 Construct structure ( temp structure{ temp sampler smpl, temp texture2D tex})
470:19 'g_tInputTexture_sampler' ( uniform sampler)
480:19 'g_tInputTexture' ( uniform texture2D)
John Kessenich03e63fa2017-08-15 10:18:32 -0600490:20 Sequence
John Kessenichffc31cd2017-11-28 23:47:08 -0700500:20 move second child to first child ( temp 4-component vector of float)
510:20 'res' ( temp 4-component vector of float)
520:20 Function Call: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
John Kessenichdc005fb2017-11-16 16:03:18 -0700530:20 'tex1' ( temp structure{ temp sampler smpl, temp texture2D tex})
Unknowna6085872017-10-03 09:10:26 +0200540:21 Sequence
John Kessenichdc005fb2017-11-16 16:03:18 -0700550:21 move second child to first child ( temp structure{ temp sampler smpl, temp texture2D tex})
560:21 'tex2' ( temp structure{ temp sampler smpl, temp texture2D tex})
570:21 Function Call: fillOpaque( ( temp structure{ temp sampler smpl, temp texture2D tex})
John Kessenichffc31cd2017-11-28 23:47:08 -0700580:22 add second child into first child ( temp 4-component vector of float)
590:22 'res' ( temp 4-component vector of float)
600:22 Function Call: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
John Kessenichdc005fb2017-11-16 16:03:18 -0700610:22 'tex2' ( temp structure{ temp sampler smpl, temp texture2D tex})
John Kessenichffc31cd2017-11-28 23:47:08 -0700620:23 Sequence
John Kessenichdc005fb2017-11-16 16:03:18 -0700630:23 move second child to first child ( temp structure{ temp sampler smpl, temp texture2D tex})
640:23 'tex3' ( temp structure{ temp sampler smpl, temp texture2D tex})
650:23 'tex1' ( temp structure{ temp sampler smpl, temp texture2D tex})
John Kessenichffc31cd2017-11-28 23:47:08 -0700660:24 add second child into first child ( temp 4-component vector of float)
670:24 'res' ( temp 4-component vector of float)
680:24 Function Call: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
John Kessenichdc005fb2017-11-16 16:03:18 -0700690:24 'tex3' ( temp structure{ temp sampler smpl, temp texture2D tex})
700:26 Branch: Return with expression
710:26 'res' ( temp 4-component vector of float)
John Kessenich03e63fa2017-08-15 10:18:32 -0600720:18 Function Definition: main( ( temp void)
730:18 Function Parameters:
John Kessenich0e6e2ff2017-07-16 05:46:13 -0600740:? Sequence
John Kessenich03e63fa2017-08-15 10:18:32 -0600750:18 move second child to first child ( temp 4-component vector of float)
John Kessenich0e6e2ff2017-07-16 05:46:13 -0600760:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
John Kessenich03e63fa2017-08-15 10:18:32 -0600770:18 Function Call: @main( ( temp 4-component vector of float)
John Kessenich0e6e2ff2017-07-16 05:46:13 -0600780:? Linker Objects
790:? 'g_tInputTexture_sampler' ( uniform sampler)
800:? 'g_tInputTexture' ( uniform texture2D)
810:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
82
83
84Linked vertex stage:
85
86
87Shader version: 500
880:? Sequence
890:5 Function Definition: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
900:5 Function Parameters:
John Kessenichdc005fb2017-11-16 16:03:18 -0700910:5 'tex' ( in structure{ temp sampler smpl, temp texture2D tex})
John Kessenich0e6e2ff2017-07-16 05:46:13 -0600920:? Sequence
930:6 Branch: Return with expression
940:6 texture ( temp 4-component vector of float)
950:6 Construct combined texture-sampler ( temp sampler2D)
John Kessenichdc005fb2017-11-16 16:03:18 -0700960:6 tex: direct index for structure ( temp texture2D)
970:6 'tex' ( in structure{ temp sampler smpl, temp texture2D tex})
980:6 Constant:
990:6 1 (const int)
1000:6 smpl: direct index for structure ( temp sampler)
1010:6 'tex' ( in structure{ temp sampler smpl, temp texture2D tex})
1020:6 Constant:
1030:6 0 (const int)
John Kessenich0e6e2ff2017-07-16 05:46:13 -06001040:? Constant:
1050:? 0.300000
1060:? 0.400000
John Kessenich03e63fa2017-08-15 10:18:32 -06001070:10 Function Definition: fillOpaque( ( temp structure{ temp sampler smpl, temp texture2D tex})
John Kessenich0e6e2ff2017-07-16 05:46:13 -06001080:10 Function Parameters:
1090:? Sequence
John Kessenich15fa7ef2017-09-07 04:33:11 -06001100:12 move second child to first child ( temp sampler)
John Kessenichdc005fb2017-11-16 16:03:18 -07001110:12 smpl: direct index for structure ( temp sampler)
1120:12 't' ( temp structure{ temp sampler smpl, temp texture2D tex})
1130:12 Constant:
1140:12 0 (const int)
John Kessenich15fa7ef2017-09-07 04:33:11 -06001150:12 'g_tInputTexture_sampler' ( uniform sampler)
1160:13 move second child to first child ( temp texture2D)
John Kessenichdc005fb2017-11-16 16:03:18 -07001170:13 tex: direct index for structure ( temp texture2D)
1180:13 't' ( temp structure{ temp sampler smpl, temp texture2D tex})
1190:13 Constant:
1200:13 1 (const int)
John Kessenich15fa7ef2017-09-07 04:33:11 -06001210:13 'g_tInputTexture' ( uniform texture2D)
John Kessenich03e63fa2017-08-15 10:18:32 -06001220:14 Branch: Return with expression
1230:14 't' ( temp structure{ temp sampler smpl, temp texture2D tex})
1240:18 Function Definition: @main( ( temp 4-component vector of float)
1250:18 Function Parameters:
1260:? Sequence
John Kessenich15fa7ef2017-09-07 04:33:11 -06001270:19 Sequence
John Kessenichdc005fb2017-11-16 16:03:18 -07001280:19 move second child to first child ( temp structure{ temp sampler smpl, temp texture2D tex})
1290:19 'tex1' ( temp structure{ temp sampler smpl, temp texture2D tex})
1300:19 Construct structure ( temp structure{ temp sampler smpl, temp texture2D tex})
1310:19 'g_tInputTexture_sampler' ( uniform sampler)
1320:19 'g_tInputTexture' ( uniform texture2D)
John Kessenich03e63fa2017-08-15 10:18:32 -06001330:20 Sequence
John Kessenichffc31cd2017-11-28 23:47:08 -07001340:20 move second child to first child ( temp 4-component vector of float)
1350:20 'res' ( temp 4-component vector of float)
1360:20 Function Call: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
John Kessenichdc005fb2017-11-16 16:03:18 -07001370:20 'tex1' ( temp structure{ temp sampler smpl, temp texture2D tex})
Unknowna6085872017-10-03 09:10:26 +02001380:21 Sequence
John Kessenichdc005fb2017-11-16 16:03:18 -07001390:21 move second child to first child ( temp structure{ temp sampler smpl, temp texture2D tex})
1400:21 'tex2' ( temp structure{ temp sampler smpl, temp texture2D tex})
1410:21 Function Call: fillOpaque( ( temp structure{ temp sampler smpl, temp texture2D tex})
John Kessenichffc31cd2017-11-28 23:47:08 -07001420:22 add second child into first child ( temp 4-component vector of float)
1430:22 'res' ( temp 4-component vector of float)
1440:22 Function Call: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
John Kessenichdc005fb2017-11-16 16:03:18 -07001450:22 'tex2' ( temp structure{ temp sampler smpl, temp texture2D tex})
John Kessenichffc31cd2017-11-28 23:47:08 -07001460:23 Sequence
John Kessenichdc005fb2017-11-16 16:03:18 -07001470:23 move second child to first child ( temp structure{ temp sampler smpl, temp texture2D tex})
1480:23 'tex3' ( temp structure{ temp sampler smpl, temp texture2D tex})
1490:23 'tex1' ( temp structure{ temp sampler smpl, temp texture2D tex})
John Kessenichffc31cd2017-11-28 23:47:08 -07001500:24 add second child into first child ( temp 4-component vector of float)
1510:24 'res' ( temp 4-component vector of float)
1520:24 Function Call: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
John Kessenichdc005fb2017-11-16 16:03:18 -07001530:24 'tex3' ( temp structure{ temp sampler smpl, temp texture2D tex})
1540:26 Branch: Return with expression
1550:26 'res' ( temp 4-component vector of float)
John Kessenich03e63fa2017-08-15 10:18:32 -06001560:18 Function Definition: main( ( temp void)
1570:18 Function Parameters:
John Kessenich0e6e2ff2017-07-16 05:46:13 -06001580:? Sequence
John Kessenich03e63fa2017-08-15 10:18:32 -06001590:18 move second child to first child ( temp 4-component vector of float)
John Kessenich0e6e2ff2017-07-16 05:46:13 -06001600:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
John Kessenich03e63fa2017-08-15 10:18:32 -06001610:18 Function Call: @main( ( temp 4-component vector of float)
John Kessenich0e6e2ff2017-07-16 05:46:13 -06001620:? Linker Objects
1630:? 'g_tInputTexture_sampler' ( uniform sampler)
1640:? 'g_tInputTexture' ( uniform texture2D)
1650:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
166
John Kessenich2b5ea9f2018-01-31 18:35:56 -0700167// Module Version 10000
John Kessenichd6c97552018-06-04 15:33:31 -0600168// Generated by (magic number): 80007
John Kessenichdc005fb2017-11-16 16:03:18 -0700169// Id's are bound by 82
John Kessenich0e6e2ff2017-07-16 05:46:13 -0600170
171 Capability Shader
172 1: ExtInstImport "GLSL.std.450"
173 MemoryModel Logical GLSL450
John Kessenichdc005fb2017-11-16 16:03:18 -0700174 EntryPoint Vertex 4 "main" 80
John Kessenich0e6e2ff2017-07-16 05:46:13 -0600175 Source HLSL 500
176 Name 4 "main"
John Kessenichdc005fb2017-11-16 16:03:18 -0700177 Name 9 "FxaaTex"
178 MemberName 9(FxaaTex) 0 "smpl"
179 MemberName 9(FxaaTex) 1 "tex"
180 Name 14 "lookUp(struct-FxaaTex-p1-t211;"
181 Name 13 "tex"
182 Name 17 "fillOpaque("
183 Name 20 "@main("
184 Name 41 "t"
185 Name 43 "g_tInputTexture_sampler"
186 Name 47 "g_tInputTexture"
187 Name 53 "tex1"
188 Name 58 "res"
189 Name 59 "param"
190 Name 62 "tex2"
John Kessenichffc31cd2017-11-28 23:47:08 -0700191 Name 64 "param"
John Kessenichdc005fb2017-11-16 16:03:18 -0700192 Name 69 "tex3"
193 Name 71 "param"
194 Name 80 "@entryPointOutput"
195 Decorate 43(g_tInputTexture_sampler) DescriptorSet 0
Jeff Bolz0a93cfb2018-12-11 20:53:59 -0600196 Decorate 43(g_tInputTexture_sampler) Binding 0
John Kessenichdc005fb2017-11-16 16:03:18 -0700197 Decorate 47(g_tInputTexture) DescriptorSet 0
Jeff Bolz0a93cfb2018-12-11 20:53:59 -0600198 Decorate 47(g_tInputTexture) Binding 0
John Kessenichdc005fb2017-11-16 16:03:18 -0700199 Decorate 80(@entryPointOutput) Location 0
John Kessenich0e6e2ff2017-07-16 05:46:13 -0600200 2: TypeVoid
201 3: TypeFunction 2
202 6: TypeSampler
John Kessenichdc005fb2017-11-16 16:03:18 -0700203 7: TypeFloat 32
204 8: TypeImage 7(float) 2D sampled format:Unknown
205 9(FxaaTex): TypeStruct 6 8
206 10: TypePointer Function 9(FxaaTex)
207 11: TypeVector 7(float) 4
208 12: TypeFunction 11(fvec4) 10(ptr)
209 16: TypeFunction 9(FxaaTex)
210 19: TypeFunction 11(fvec4)
211 22: TypeInt 32 1
212 23: 22(int) Constant 1
213 24: TypePointer Function 8
214 27: 22(int) Constant 0
215 28: TypePointer Function 6
216 31: TypeSampledImage 8
217 33: TypeVector 7(float) 2
218 34: 7(float) Constant 1050253722
219 35: 7(float) Constant 1053609165
220 36: 33(fvec2) ConstantComposite 34 35
221 37: 7(float) Constant 0
222 42: TypePointer UniformConstant 6
22343(g_tInputTexture_sampler): 42(ptr) Variable UniformConstant
224 46: TypePointer UniformConstant 8
22547(g_tInputTexture): 46(ptr) Variable UniformConstant
226 57: TypePointer Function 11(fvec4)
227 79: TypePointer Output 11(fvec4)
22880(@entryPointOutput): 79(ptr) Variable Output
John Kessenich0e6e2ff2017-07-16 05:46:13 -0600229 4(main): 2 Function None 3
230 5: Label
John Kessenichdc005fb2017-11-16 16:03:18 -0700231 81: 11(fvec4) FunctionCall 20(@main()
232 Store 80(@entryPointOutput) 81
John Kessenich0e6e2ff2017-07-16 05:46:13 -0600233 Return
234 FunctionEnd
John Kessenichdc005fb2017-11-16 16:03:18 -070023514(lookUp(struct-FxaaTex-p1-t211;): 11(fvec4) Function None 12
236 13(tex): 10(ptr) FunctionParameter
237 15: Label
238 25: 24(ptr) AccessChain 13(tex) 23
239 26: 8 Load 25
240 29: 28(ptr) AccessChain 13(tex) 27
241 30: 6 Load 29
242 32: 31 SampledImage 26 30
243 38: 11(fvec4) ImageSampleExplicitLod 32 36 Lod 37
244 ReturnValue 38
John Kessenich0e6e2ff2017-07-16 05:46:13 -0600245 FunctionEnd
John Kessenichdc005fb2017-11-16 16:03:18 -0700246 17(fillOpaque(): 9(FxaaTex) Function None 16
247 18: Label
248 41(t): 10(ptr) Variable Function
249 44: 6 Load 43(g_tInputTexture_sampler)
250 45: 28(ptr) AccessChain 41(t) 27
251 Store 45 44
252 48: 8 Load 47(g_tInputTexture)
253 49: 24(ptr) AccessChain 41(t) 23
254 Store 49 48
255 50: 9(FxaaTex) Load 41(t)
256 ReturnValue 50
John Kessenich03e63fa2017-08-15 10:18:32 -0600257 FunctionEnd
John Kessenichdc005fb2017-11-16 16:03:18 -0700258 20(@main(): 11(fvec4) Function None 19
259 21: Label
260 53(tex1): 10(ptr) Variable Function
261 58(res): 57(ptr) Variable Function
262 59(param): 10(ptr) Variable Function
263 62(tex2): 10(ptr) Variable Function
264 64(param): 10(ptr) Variable Function
265 69(tex3): 10(ptr) Variable Function
266 71(param): 10(ptr) Variable Function
267 54: 6 Load 43(g_tInputTexture_sampler)
268 55: 8 Load 47(g_tInputTexture)
269 56: 9(FxaaTex) CompositeConstruct 54 55
270 Store 53(tex1) 56
271 60: 9(FxaaTex) Load 53(tex1)
272 Store 59(param) 60
273 61: 11(fvec4) FunctionCall 14(lookUp(struct-FxaaTex-p1-t211;) 59(param)
274 Store 58(res) 61
275 63: 9(FxaaTex) FunctionCall 17(fillOpaque()
276 Store 62(tex2) 63
277 65: 9(FxaaTex) Load 62(tex2)
John Kessenichffc31cd2017-11-28 23:47:08 -0700278 Store 64(param) 65
John Kessenichdc005fb2017-11-16 16:03:18 -0700279 66: 11(fvec4) FunctionCall 14(lookUp(struct-FxaaTex-p1-t211;) 64(param)
280 67: 11(fvec4) Load 58(res)
281 68: 11(fvec4) FAdd 67 66
282 Store 58(res) 68
283 70: 9(FxaaTex) Load 53(tex1)
284 Store 69(tex3) 70
285 72: 9(FxaaTex) Load 69(tex3)
286 Store 71(param) 72
287 73: 11(fvec4) FunctionCall 14(lookUp(struct-FxaaTex-p1-t211;) 71(param)
288 74: 11(fvec4) Load 58(res)
289 75: 11(fvec4) FAdd 74 73
290 Store 58(res) 75
291 76: 11(fvec4) Load 58(res)
292 ReturnValue 76
John Kessenich0e6e2ff2017-07-16 05:46:13 -0600293 FunctionEnd