ae048ce9878bf099aafe2babbd7a49422d7beee4
[platform/upstream/glslang.git] / Test / baseResults / spv.register.autoassign.frag.out
1 spv.register.autoassign.frag
2 // Module Version 10000
3 // Generated by (magic number): 80001
4 // Id's are bound by 155
5
6                               Capability Shader
7                               Capability Sampled1D
8                1:             ExtInstImport  "GLSL.std.450"
9                               MemoryModel Logical GLSL450
10                               EntryPoint Fragment 4  "main_ep" 151
11                               ExecutionMode 4 OriginUpperLeft
12                               Name 4  "main_ep"
13                               Name 9  "Func1("
14                               Name 11  "Func2("
15                               Name 13  "Func2_unused("
16                               Name 15  "PS_OUTPUT"
17                               MemberName 15(PS_OUTPUT) 0  "Color"
18                               Name 17  "@main_ep("
19                               Name 21  "g_tTex1"
20                               Name 25  "g_sSamp1"
21                               Name 31  "g_tTex2"
22                               Name 33  "g_sSamp2"
23                               Name 43  "g_tTex3"
24                               Name 50  "g_sSamp3"
25                               Name 68  "g_tTex4"
26                               Name 73  "g_sSamp4"
27                               Name 88  "g_tTex5"
28                               Name 90  "g_sSamp5"
29                               Name 97  "MyStruct_t"
30                               MemberName 97(MyStruct_t) 0  "a"
31                               MemberName 97(MyStruct_t) 1  "b"
32                               MemberName 97(MyStruct_t) 2  "c"
33                               Name 99  "$Global"
34                               MemberName 99($Global) 0  "mystruct"
35                               MemberName 99($Global) 1  "myfloat4_a"
36                               MemberName 99($Global) 2  "myfloat4_b"
37                               MemberName 99($Global) 3  "myint4_a"
38                               Name 101  ""
39                               Name 123  "g_tTex_unused1"
40                               Name 125  "g_sSamp_unused1"
41                               Name 130  "g_tTex_unused2"
42                               Name 132  "g_sSamp_unused2"
43                               Name 141  "psout"
44                               Name 151  "Color"
45                               Name 154  "g_tTex_unused3"
46                               Decorate 21(g_tTex1) DescriptorSet 0
47                               Decorate 21(g_tTex1) Binding 11
48                               Decorate 25(g_sSamp1) DescriptorSet 0
49                               Decorate 25(g_sSamp1) Binding 5
50                               Decorate 31(g_tTex2) DescriptorSet 0
51                               Decorate 31(g_tTex2) Binding 14
52                               Decorate 33(g_sSamp2) DescriptorSet 0
53                               Decorate 33(g_sSamp2) Binding 6
54                               Decorate 43(g_tTex3) DescriptorSet 0
55                               Decorate 43(g_tTex3) Binding 13
56                               Decorate 50(g_sSamp3) DescriptorSet 0
57                               Decorate 50(g_sSamp3) Binding 7
58                               Decorate 68(g_tTex4) DescriptorSet 0
59                               Decorate 68(g_tTex4) Binding 15
60                               Decorate 73(g_sSamp4) DescriptorSet 0
61                               Decorate 73(g_sSamp4) Binding 8
62                               Decorate 88(g_tTex5) DescriptorSet 0
63                               Decorate 88(g_tTex5) Binding 16
64                               Decorate 90(g_sSamp5) DescriptorSet 0
65                               Decorate 90(g_sSamp5) Binding 9
66                               MemberDecorate 97(MyStruct_t) 0 Offset 0
67                               MemberDecorate 97(MyStruct_t) 1 Offset 4
68                               MemberDecorate 97(MyStruct_t) 2 Offset 16
69                               MemberDecorate 99($Global) 0 Offset 0
70                               MemberDecorate 99($Global) 1 Offset 32
71                               MemberDecorate 99($Global) 2 Offset 48
72                               MemberDecorate 99($Global) 3 Offset 64
73                               Decorate 99($Global) Block
74                               Decorate 101 DescriptorSet 0
75                               Decorate 101 Binding 20
76                               Decorate 123(g_tTex_unused1) DescriptorSet 0
77                               Decorate 123(g_tTex_unused1) Binding 10
78                               Decorate 125(g_sSamp_unused1) DescriptorSet 0
79                               Decorate 130(g_tTex_unused2) DescriptorSet 0
80                               Decorate 130(g_tTex_unused2) Binding 12
81                               Decorate 132(g_sSamp_unused2) DescriptorSet 0
82                               Decorate 151(Color) Location 0
83                               Decorate 154(g_tTex_unused3) DescriptorSet 0
84                2:             TypeVoid
85                3:             TypeFunction 2
86                6:             TypeFloat 32
87                7:             TypeVector 6(float) 4
88                8:             TypeFunction 7(fvec4)
89    15(PS_OUTPUT):             TypeStruct 7(fvec4)
90               16:             TypeFunction 15(PS_OUTPUT)
91               19:             TypeImage 6(float) 1D sampled format:Unknown
92               20:             TypePointer UniformConstant 19
93      21(g_tTex1):     20(ptr) Variable UniformConstant
94               23:             TypeSampler
95               24:             TypePointer UniformConstant 23
96     25(g_sSamp1):     24(ptr) Variable UniformConstant
97               27:             TypeSampledImage 19
98               29:    6(float) Constant 1036831949
99      31(g_tTex2):     20(ptr) Variable UniformConstant
100     33(g_sSamp2):     24(ptr) Variable UniformConstant
101               36:    6(float) Constant 1045220557
102               39:             TypeInt 32 0
103               40:     39(int) Constant 2
104               41:             TypeArray 19 40
105               42:             TypePointer UniformConstant 41
106      43(g_tTex3):     42(ptr) Variable UniformConstant
107               44:             TypeInt 32 1
108               45:     44(int) Constant 0
109               48:             TypeArray 23 40
110               49:             TypePointer UniformConstant 48
111     50(g_sSamp3):     49(ptr) Variable UniformConstant
112               54:    6(float) Constant 1050253722
113               57:     44(int) Constant 1
114               65:     39(int) Constant 3
115               66:             TypeArray 19 65
116               67:             TypePointer UniformConstant 66
117      68(g_tTex4):     67(ptr) Variable UniformConstant
118               71:             TypeArray 23 65
119               72:             TypePointer UniformConstant 71
120     73(g_sSamp4):     72(ptr) Variable UniformConstant
121               77:    6(float) Constant 1053609165
122               80:     44(int) Constant 2
123      88(g_tTex5):     20(ptr) Variable UniformConstant
124     90(g_sSamp5):     24(ptr) Variable UniformConstant
125               93:    6(float) Constant 1056964608
126               96:             TypeVector 6(float) 3
127   97(MyStruct_t):             TypeStruct 44(int) 6(float) 96(fvec3)
128               98:             TypeVector 44(int) 4
129      99($Global):             TypeStruct 97(MyStruct_t) 7(fvec4) 7(fvec4) 98(ivec4)
130              100:             TypePointer Uniform 99($Global)
131              101:    100(ptr) Variable Uniform
132              102:     39(int) Constant 1
133              103:             TypePointer Uniform 6(float)
134 123(g_tTex_unused1):     20(ptr) Variable UniformConstant
135 125(g_sSamp_unused1):     24(ptr) Variable UniformConstant
136              128:    6(float) Constant 1066192077
137 130(g_tTex_unused2):     20(ptr) Variable UniformConstant
138 132(g_sSamp_unused2):     24(ptr) Variable UniformConstant
139              135:    6(float) Constant 1067030938
140              140:             TypePointer Function 15(PS_OUTPUT)
141              145:             TypePointer Function 7(fvec4)
142              150:             TypePointer Output 7(fvec4)
143       151(Color):    150(ptr) Variable Output
144 154(g_tTex_unused3):     20(ptr) Variable UniformConstant
145       4(main_ep):           2 Function None 3
146                5:             Label
147              152:15(PS_OUTPUT) FunctionCall 17(@main_ep()
148              153:    7(fvec4) CompositeExtract 152 0
149                               Store 151(Color) 153
150                               Return
151                               FunctionEnd
152        9(Func1():    7(fvec4) Function None 8
153               10:             Label
154               22:          19 Load 21(g_tTex1)
155               26:          23 Load 25(g_sSamp1)
156               28:          27 SampledImage 22 26
157               30:    7(fvec4) ImageSampleImplicitLod 28 29
158               32:          19 Load 31(g_tTex2)
159               34:          23 Load 33(g_sSamp2)
160               35:          27 SampledImage 32 34
161               37:    7(fvec4) ImageSampleImplicitLod 35 36
162               38:    7(fvec4) FAdd 30 37
163               46:     20(ptr) AccessChain 43(g_tTex3) 45
164               47:          19 Load 46
165               51:     24(ptr) AccessChain 50(g_sSamp3) 45
166               52:          23 Load 51
167               53:          27 SampledImage 47 52
168               55:    7(fvec4) ImageSampleImplicitLod 53 54
169               56:    7(fvec4) FAdd 38 55
170               58:     20(ptr) AccessChain 43(g_tTex3) 57
171               59:          19 Load 58
172               60:     24(ptr) AccessChain 50(g_sSamp3) 57
173               61:          23 Load 60
174               62:          27 SampledImage 59 61
175               63:    7(fvec4) ImageSampleImplicitLod 62 54
176               64:    7(fvec4) FAdd 56 63
177               69:     20(ptr) AccessChain 68(g_tTex4) 57
178               70:          19 Load 69
179               74:     24(ptr) AccessChain 73(g_sSamp4) 57
180               75:          23 Load 74
181               76:          27 SampledImage 70 75
182               78:    7(fvec4) ImageSampleImplicitLod 76 77
183               79:    7(fvec4) FAdd 64 78
184               81:     20(ptr) AccessChain 68(g_tTex4) 80
185               82:          19 Load 81
186               83:     24(ptr) AccessChain 73(g_sSamp4) 80
187               84:          23 Load 83
188               85:          27 SampledImage 82 84
189               86:    7(fvec4) ImageSampleImplicitLod 85 77
190               87:    7(fvec4) FAdd 79 86
191               89:          19 Load 88(g_tTex5)
192               91:          23 Load 90(g_sSamp5)
193               92:          27 SampledImage 89 91
194               94:    7(fvec4) ImageSampleImplicitLod 92 93
195               95:    7(fvec4) FAdd 87 94
196              104:    103(ptr) AccessChain 101 45 80 102
197              105:    6(float) Load 104
198              106:    7(fvec4) CompositeConstruct 105 105 105 105
199              107:    7(fvec4) FAdd 95 106
200                               ReturnValue 107
201                               FunctionEnd
202       11(Func2():    7(fvec4) Function None 8
203               12:             Label
204              110:          19 Load 21(g_tTex1)
205              111:          23 Load 25(g_sSamp1)
206              112:          27 SampledImage 110 111
207              113:    7(fvec4) ImageSampleImplicitLod 112 29
208              114:     20(ptr) AccessChain 43(g_tTex3) 57
209              115:          19 Load 114
210              116:     24(ptr) AccessChain 50(g_sSamp3) 57
211              117:          23 Load 116
212              118:          27 SampledImage 115 117
213              119:    7(fvec4) ImageSampleImplicitLod 118 54
214              120:    7(fvec4) FAdd 113 119
215                               ReturnValue 120
216                               FunctionEnd
217 13(Func2_unused():    7(fvec4) Function None 8
218               14:             Label
219              124:          19 Load 123(g_tTex_unused1)
220              126:          23 Load 125(g_sSamp_unused1)
221              127:          27 SampledImage 124 126
222              129:    7(fvec4) ImageSampleImplicitLod 127 128
223              131:          19 Load 130(g_tTex_unused2)
224              133:          23 Load 132(g_sSamp_unused2)
225              134:          27 SampledImage 131 133
226              136:    7(fvec4) ImageSampleImplicitLod 134 135
227              137:    7(fvec4) FAdd 129 136
228                               ReturnValue 137
229                               FunctionEnd
230    17(@main_ep():15(PS_OUTPUT) Function None 16
231               18:             Label
232       141(psout):    140(ptr) Variable Function
233              142:    7(fvec4) FunctionCall 9(Func1()
234              143:    7(fvec4) FunctionCall 11(Func2()
235              144:    7(fvec4) FAdd 142 143
236              146:    145(ptr) AccessChain 141(psout) 45
237                               Store 146 144
238              147:15(PS_OUTPUT) Load 141(psout)
239                               ReturnValue 147
240                               FunctionEnd