• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1remap.similar_1b.none.frag
2// Module Version 10000
3// Generated by (magic number): 80008
4// Id's are bound by 91
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Fragment 4  "main" 58 78 80
10                              ExecutionMode 4 OriginUpperLeft
11                              Source GLSL 450
12                              Name 4  "main"
13                              Name 11  "Test1(i1;"
14                              Name 10  "bound"
15                              Name 14  "Test2(i1;"
16                              Name 13  "bound"
17                              Name 17  "r"
18                              Name 19  "x"
19                              Name 49  "param"
20                              Name 58  "ini4"
21                              Name 78  "outf4"
22                              Name 80  "inf"
23                              Name 83  "param"
24                              Name 87  "param"
25                              Decorate 58(ini4) Flat
26               2:             TypeVoid
27               3:             TypeFunction 2
28               6:             TypeInt 32 1
29               7:             TypePointer Function 6(int)
30               8:             TypeFloat 32
31               9:             TypeFunction 8(float) 7(ptr)
32              16:             TypePointer Function 8(float)
33              18:    8(float) Constant 0
34              20:      6(int) Constant 0
35              28:             TypeBool
36              30:    8(float) Constant 1056964608
37              34:      6(int) Constant 1
38              36:    8(float) Constant 1045220557
39              43:      6(int) Constant 2
40              54:      6(int) Constant 4
41              56:             TypeVector 6(int) 4
42              57:             TypePointer Input 56(ivec4)
43        58(ini4):     57(ptr) Variable Input
44              59:             TypeInt 32 0
45              60:     59(int) Constant 1
46              61:             TypePointer Input 6(int)
47              64:     59(int) Constant 2
48              69:     59(int) Constant 0
49              76:             TypeVector 8(float) 4
50              77:             TypePointer Output 76(fvec4)
51       78(outf4):     77(ptr) Variable Output
52              79:             TypePointer Input 8(float)
53         80(inf):     79(ptr) Variable Input
54         4(main):           2 Function None 3
55               5:             Label
56       83(param):      7(ptr) Variable Function
57       87(param):      7(ptr) Variable Function
58              81:    8(float) Load 80(inf)
59              82:      6(int) ConvertFToS 81
60                              Store 83(param) 82
61              84:    8(float) FunctionCall 11(Test1(i1;) 83(param)
62              85:    8(float) Load 80(inf)
63              86:      6(int) ConvertFToS 85
64                              Store 87(param) 86
65              88:    8(float) FunctionCall 14(Test2(i1;) 87(param)
66              89:    8(float) FAdd 84 88
67              90:   76(fvec4) CompositeConstruct 89 89 89 89
68                              Store 78(outf4) 90
69                              Return
70                              FunctionEnd
71   11(Test1(i1;):    8(float) Function None 9
72       10(bound):      7(ptr) FunctionParameter
73              12:             Label
74           17(r):     16(ptr) Variable Function
75           19(x):      7(ptr) Variable Function
76                              Store 17(r) 18
77                              Store 19(x) 20
78                              Branch 21
79              21:             Label
80                              LoopMerge 23 24 None
81                              Branch 25
82              25:             Label
83              26:      6(int) Load 19(x)
84              27:      6(int) Load 10(bound)
85              29:    28(bool) SLessThan 26 27
86                              BranchConditional 29 22 23
87              22:               Label
88              31:    8(float)   Load 17(r)
89              32:    8(float)   FAdd 31 30
90                                Store 17(r) 32
91                                Branch 24
92              24:               Label
93              33:      6(int)   Load 19(x)
94              35:      6(int)   IAdd 33 34
95                                Store 19(x) 35
96                                Branch 21
97              23:             Label
98              37:    8(float) Load 17(r)
99              38:    8(float) FAdd 37 36
100                              Store 17(r) 38
101              39:    8(float) Load 17(r)
102                              ReturnValue 39
103                              FunctionEnd
104   14(Test2(i1;):    8(float) Function None 9
105       13(bound):      7(ptr) FunctionParameter
106              15:             Label
107       49(param):      7(ptr) Variable Function
108              42:      6(int) Load 13(bound)
109              44:    28(bool) SGreaterThan 42 43
110                              SelectionMerge 46 None
111                              BranchConditional 44 45 52
112              45:               Label
113              47:      6(int)   Load 13(bound)
114              48:      6(int)   IMul 47 43
115                                Store 49(param) 48
116              50:    8(float)   FunctionCall 11(Test1(i1;) 49(param)
117                                ReturnValue 50
118              52:               Label
119              53:      6(int)   Load 13(bound)
120              55:      6(int)   IMul 53 54
121              62:     61(ptr)   AccessChain 58(ini4) 60
122              63:      6(int)   Load 62
123              65:     61(ptr)   AccessChain 58(ini4) 64
124              66:      6(int)   Load 65
125              67:      6(int)   IMul 63 66
126              68:      6(int)   IAdd 55 67
127              70:     61(ptr)   AccessChain 58(ini4) 69
128              71:      6(int)   Load 70
129              72:      6(int)   IAdd 68 71
130              73:    8(float)   ConvertSToF 72
131                                ReturnValue 73
132              46:             Label
133                              Unreachable
134                              FunctionEnd
135