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