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