• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 43(g_tInputTexture_sampler) Binding 0
197                              Decorate 47(g_tInputTexture) DescriptorSet 0
198                              Decorate 47(g_tInputTexture) Binding 0
199                              Decorate 80(@entryPointOutput) Location 0
200               2:             TypeVoid
201               3:             TypeFunction 2
202               6:             TypeSampler
203               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
229         4(main):           2 Function None 3
230               5:             Label
231              81:   11(fvec4) FunctionCall 20(@main()
232                              Store 80(@entryPointOutput) 81
233                              Return
234                              FunctionEnd
23514(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
245                              FunctionEnd
246 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
257                              FunctionEnd
258      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)
278                              Store 64(param) 65
279              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
293                              FunctionEnd
294