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