1hlsl.flattenOpaqueInit.vert
2WARNING: AST will form illegal SPIR-V; need to transform to legalize
3Shader version: 500
40:? Sequence
50:5  Function Definition: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
60:5    Function Parameters:
70:5      'tex' ( in structure{ temp sampler smpl,  temp texture2D tex})
80:?     Sequence
90:6      Branch: Return with expression
100:6        texture ( temp 4-component vector of float)
110:6          Construct combined texture-sampler ( temp sampler2D)
120: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)
200:?           Constant:
210:?             0.300000
220:?             0.400000
230:10  Function Definition: fillOpaque( ( temp structure{ temp sampler smpl,  temp texture2D tex})
240:10    Function Parameters:
250:?     Sequence
260:12      move second child to first child ( temp sampler)
270: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)
310:12        'g_tInputTexture_sampler' ( uniform sampler)
320:13      move second child to first child ( temp texture2D)
330: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)
370:13        'g_tInputTexture' ( uniform texture2D)
380: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
430:19      Sequence
440: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)
490:20      Sequence
500: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)
530:20            'tex1' ( temp structure{ temp sampler smpl,  temp texture2D tex})
540:21      Sequence
550: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})
580: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)
610:22          'tex2' ( temp structure{ temp sampler smpl,  temp texture2D tex})
620:23      Sequence
630: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})
660: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)
690: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)
720:18  Function Definition: main( ( temp void)
730:18    Function Parameters:
740:?     Sequence
750:18      move second child to first child ( temp 4-component vector of float)
760:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
770:18        Function Call: @main( ( temp 4-component vector of float)
780:?   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:
910:5      'tex' ( in structure{ temp sampler smpl,  temp texture2D tex})
920:?     Sequence
930:6      Branch: Return with expression
940:6        texture ( temp 4-component vector of float)
950:6          Construct combined texture-sampler ( temp sampler2D)
960: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)
1040:?           Constant:
1050:?             0.300000
1060:?             0.400000
1070:10  Function Definition: fillOpaque( ( temp structure{ temp sampler smpl,  temp texture2D tex})
1080:10    Function Parameters:
1090:?     Sequence
1100:12      move second child to first child ( temp sampler)
1110: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)
1150:12        'g_tInputTexture_sampler' ( uniform sampler)
1160:13      move second child to first child ( temp texture2D)
1170: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)
1210:13        'g_tInputTexture' ( uniform texture2D)
1220: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
1270:19      Sequence
1280: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)
1330:20      Sequence
1340: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)
1370:20            'tex1' ( temp structure{ temp sampler smpl,  temp texture2D tex})
1380:21      Sequence
1390: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})
1420: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)
1450:22          'tex2' ( temp structure{ temp sampler smpl,  temp texture2D tex})
1460:23      Sequence
1470: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})
1500: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)
1530: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)
1560:18  Function Definition: main( ( temp void)
1570:18    Function Parameters:
1580:?     Sequence
1590:18      move second child to first child ( temp 4-component vector of float)
1600:?         '@entryPointOutput' (layout( location=0) out 4-component vector of float)
1610:18        Function Call: @main( ( temp 4-component vector of float)
1620:?   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
167// Module Version 10000
168// Generated by (magic number): 80007
169// Id's are bound by 82
170
171                              Capability Shader
172               1:             ExtInstImport  "GLSL.std.450"
173                              MemoryModel Logical GLSL450
174                              EntryPoint Vertex 4  "main" 80
175                              Source HLSL 500
176                              Name 4  "main"
177                              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"
191                              Name 64  "param"
192                              Name 69  "tex3"
193                              Name 71  "param"
194                              Name 80  "@entryPointOutput"
195                              Decorate 43(g_tInputTexture_sampler) DescriptorSet 0
196                              Decorate 47(g_tInputTexture) DescriptorSet 0
197                              Decorate 80(@entryPointOutput) Location 0
198               2:             TypeVoid
199               3:             TypeFunction 2
200               6:             TypeSampler
201               7:             TypeFloat 32
202               8:             TypeImage 7(float) 2D sampled format:Unknown
203      9(FxaaTex):             TypeStruct 6 8
204              10:             TypePointer Function 9(FxaaTex)
205              11:             TypeVector 7(float) 4
206              12:             TypeFunction 11(fvec4) 10(ptr)
207              16:             TypeFunction 9(FxaaTex)
208              19:             TypeFunction 11(fvec4)
209              22:             TypeInt 32 1
210              23:     22(int) Constant 1
211              24:             TypePointer Function 8
212              27:     22(int) Constant 0
213              28:             TypePointer Function 6
214              31:             TypeSampledImage 8
215              33:             TypeVector 7(float) 2
216              34:    7(float) Constant 1050253722
217              35:    7(float) Constant 1053609165
218              36:   33(fvec2) ConstantComposite 34 35
219              37:    7(float) Constant 0
220              42:             TypePointer UniformConstant 6
22143(g_tInputTexture_sampler):     42(ptr) Variable UniformConstant
222              46:             TypePointer UniformConstant 8
22347(g_tInputTexture):     46(ptr) Variable UniformConstant
224              57:             TypePointer Function 11(fvec4)
225              79:             TypePointer Output 11(fvec4)
22680(@entryPointOutput):     79(ptr) Variable Output
227         4(main):           2 Function None 3
228               5:             Label
229              81:   11(fvec4) FunctionCall 20(@main()
230                              Store 80(@entryPointOutput) 81
231                              Return
232                              FunctionEnd
23314(lookUp(struct-FxaaTex-p1-t211;):   11(fvec4) Function None 12
234         13(tex):     10(ptr) FunctionParameter
235              15:             Label
236              25:     24(ptr) AccessChain 13(tex) 23
237              26:           8 Load 25
238              29:     28(ptr) AccessChain 13(tex) 27
239              30:           6 Load 29
240              32:          31 SampledImage 26 30
241              38:   11(fvec4) ImageSampleExplicitLod 32 36 Lod 37
242                              ReturnValue 38
243                              FunctionEnd
244 17(fillOpaque():  9(FxaaTex) Function None 16
245              18:             Label
246           41(t):     10(ptr) Variable Function
247              44:           6 Load 43(g_tInputTexture_sampler)
248              45:     28(ptr) AccessChain 41(t) 27
249                              Store 45 44
250              48:           8 Load 47(g_tInputTexture)
251              49:     24(ptr) AccessChain 41(t) 23
252                              Store 49 48
253              50:  9(FxaaTex) Load 41(t)
254                              ReturnValue 50
255                              FunctionEnd
256      20(@main():   11(fvec4) Function None 19
257              21:             Label
258        53(tex1):     10(ptr) Variable Function
259         58(res):     57(ptr) Variable Function
260       59(param):     10(ptr) Variable Function
261        62(tex2):     10(ptr) Variable Function
262       64(param):     10(ptr) Variable Function
263        69(tex3):     10(ptr) Variable Function
264       71(param):     10(ptr) Variable Function
265              54:           6 Load 43(g_tInputTexture_sampler)
266              55:           8 Load 47(g_tInputTexture)
267              56:  9(FxaaTex) CompositeConstruct 54 55
268                              Store 53(tex1) 56
269              60:  9(FxaaTex) Load 53(tex1)
270                              Store 59(param) 60
271              61:   11(fvec4) FunctionCall 14(lookUp(struct-FxaaTex-p1-t211;) 59(param)
272                              Store 58(res) 61
273              63:  9(FxaaTex) FunctionCall 17(fillOpaque()
274                              Store 62(tex2) 63
275              65:  9(FxaaTex) Load 62(tex2)
276                              Store 64(param) 65
277              66:   11(fvec4) FunctionCall 14(lookUp(struct-FxaaTex-p1-t211;) 64(param)
278              67:   11(fvec4) Load 58(res)
279              68:   11(fvec4) FAdd 67 66
280                              Store 58(res) 68
281              70:  9(FxaaTex) Load 53(tex1)
282                              Store 69(tex3) 70
283              72:  9(FxaaTex) Load 69(tex3)
284                              Store 71(param) 72
285              73:   11(fvec4) FunctionCall 14(lookUp(struct-FxaaTex-p1-t211;) 71(param)
286              74:   11(fvec4) Load 58(res)
287              75:   11(fvec4) FAdd 74 73
288                              Store 58(res) 75
289              76:   11(fvec4) Load 58(res)
290                              ReturnValue 76
291                              FunctionEnd
292